DirectoryScanner ds = this.getDirectoryScanner(classDir); String filenames[] = ds.getIncludedFiles(); for ( int j = 0; j < filenames.length; j++ ) { if ( filenames[j].endsWith( ".class" ) ) { classCount++; checkList.add( new File(classDir,filenames[j]).getAbsolutePath()); } else if ( filenames[j].endsWith( ".zip" ) || filenames[j].endsWith( ".jar" ) ) { archiveCount++; checkList.add( new File(classDir,filenames[j]).getAbsolutePath()); } }
DirectoryScanner ds = this.getDirectoryScanner(classDir); String filenames[] = ds.getIncludedFiles(); for ( int j = 0; j < filenames.length; j++ ) { if ( filenames[j].endsWith( ".class" ) ) { classCount++; checkList.add( new File(classDir,filenames[j]).getAbsolutePath()); } else if ( filenames[j].endsWith( ".zip" ) || filenames[j].endsWith( ".jar" ) ) { archiveCount++; checkList.add( new File(classDir,filenames[j]).getAbsolutePath()); } } }
    public void execute() throws BuildException {        checkParameters();        resetFileLists();        // scan class directories ato build up        // check lists        String[] list = classes.list();        for (int i = 0; i < list.length; i++) {            File classDir = getProject().resolveFile(list[i]);            if (!classDir.exists()) {                throw new BuildException("classdir \""                                         + classDir.getPath()                                         + "\" does not exist!", getLocation());            }            DirectoryScanner ds = this.getDirectoryScanner(classDir);            String filenames[] = ds.getIncludedFiles();            for ( int j = 0; j < filenames.length; j++ ) {                if ( filenames[j].endsWith( ".class" ) ) {                  classCount++;                  checkList.add( new File(classDir,filenames[j]).getAbsolutePath());                }                else if ( filenames[j].endsWith( ".zip" )                     || filenames[j].endsWith( ".jar" ) ) {                  archiveCount++;                  checkList.add( new File(classDir,filenames[j]).getAbsolutePath());                }            }        }                       checkCode();    }