code: protected void setScheduler(CFMLEngine engine, Resource scheduleDirectory) throws PageException {
  	if (scheduleDirectory == null) {
  	    if (this.scheduler == null) this.scheduler = new SchedulerImpl(engine, "<?xml version=\"1.0\"?>\n<schedule></schedule>", this);
  	    return;
  	}
  
  	if (!isDirectory(scheduleDirectory)) throw new ExpressionException("schedule task directory " + scheduleDirectory + " doesn't exist or is not a directory");
  	try {
  	    if (this.scheduler == null) this.scheduler = new SchedulerImpl(engine, this, scheduleDirectory, SystemUtil.getCharset().name());
  	}
  	catch (Exception e) {
  	    throw Caster.toPageException(e);
  	}
      }
docs: sets the Schedule Directory
  
  @param scheduleDirectory sets the schedule Directory
  @param logger
  @throws PageException