code: public void setDir(final File dir) throws BuildException {
      if (this.localSet == null) {
        this.localSet = new ConditionalFileSet();
        this.owner.appendExceptFileSet(this.localSet);
      }
      this.localSet.setDir(dir);
    }
docs: Sets the base-directory