code: public void setDir(File dir) {
      final FileSet fs = new FileSet();
      fs.setProject(getProject());
      fs.setDir(dir);
      // needed if somebody sets restrictClassFilename=false:
      fs.setIncludes("**/*.class");
      classFiles.add(fs);
    }
docs: Sets a directory as base for class files. The implicit pattern '**&#47;*.class' is used to only scan class files.