/** * Get the complete list of files to be included in the cab. Filenames * are gathered from the fileset if it has been added, otherwise from the * traditional include parameters. * @return the list of files. * @throws BuildException if there is an error. */ protected Vector<String> getFileList() throws BuildException { Vector<String> files = new Vector<>(); if (baseDir != null) { // get files from old methods - includes and nested include appendFiles(files, super.getDirectoryScanner(baseDir)); } else { baseDir = fileset.getDir(); appendFiles(files, fileset.getDirectoryScanner(getProject())); } return files; }
DirectoryScanner ds = super.getDirectoryScanner(srcDir);
= this.destinationPackage.replace('.', File.separatorChar); DirectoryScanner ds = super.getDirectoryScanner(sourceDirectory);
DirectoryScanner ds = super.getDirectoryScanner(dir); for (String src : ds.getIncludedFiles()) { File file = new File(dir, src);
/** * Executes the task. * @throws BuildException on error. */ @Override public void execute() throws BuildException { // first off, make sure that we've got a srcdir and destdir validate(); // log options used String enc = encoding == null ? "default" : encoding; log("options:" + " eol=" + filter.getEol().getValue() + " tab=" + filter.getTab().getValue() + " eof=" + filter.getEof().getValue() + " tablength=" + filter.getTablength() + " encoding=" + enc + " outputencoding=" + (outputEncoding == null ? enc : outputEncoding), Project.MSG_VERBOSE); DirectoryScanner ds = super.getDirectoryScanner(srcDir); for (String filename : ds.getIncludedFiles()) { processFile(filename); } }
/** * Builds a list of all files to be analysed. We need to do this when * testing thresholds as the Javancss object does not have a constructor * that lets us make use of the -recursive option */ private List<File> findFilesToAnalyse() { DirectoryScanner ds = super.getDirectoryScanner(srcdir); String[] files = ds.getIncludedFiles(); if (files.length == 0) { log("No files in specified directory " + srcdir, 3); } return copyFiles(files); }
DirectoryScanner ds = super.getDirectoryScanner(srcDir); String[] files = ds.getIncludedFiles(); SourceFileScanner sfs = new SourceFileScanner(this);
scanner = getDirectoryScanner(baseDir);
DirectoryScanner ds = super.getDirectoryScanner(srcDir); String[] files = ds.getIncludedFiles(); SourceFileScanner sfs = new SourceFileScanner(this);
DirectoryScanner ds = super.getDirectoryScanner(dir); String[] srcs = ds.getIncludedFiles();
DirectoryScanner ds = super.getDirectoryScanner(srcDir); String[] files = ds.getIncludedFiles(); for (int i = 0; i < files.length; i++) {