FindBugs findBugs = new FindBugs(bugReporter);
    protected void checkCode() {		// Make sure findbugs.home property is set		System.setProperty("findbugs.home", homeDir);        if ( listFiles ) {            for ( int i = 0; i < checkList.size(); i++ ) {                 String filename = (String)checkList.get(i);                 log(filename) ;            }        }        if ( (archiveCount + classCount) > 0) {          StringBuffer sb = new StringBuffer( 40 );            sb.append( "Checking " );            if ( classCount > 0 ) {				sb.append(classCount + " class" + (classCount==1? " " : "es ") );            }            if ( archiveCount > 0 ) {				sb.append( (classCount>0?"and ":"") + archiveCount                            + " archive" + (archiveCount==1? " " : "s") );            }            log( sb.toString() );            errorCount = 0;            	        BugReporter bugReporter = new Reporter( sorted, suppressList ); 	        FindBugs findBugs = new FindBugs(bugReporter);                     try {               findBugs.execute( (String[])checkList.toArray( new String[0] ) );             } catch ( Exception e ) {				log( e.getMessage(), Project.MSG_ERR );                errorCount++;            }            if ( errorCount > 0 ) { 				if (failOnError) {				    log( "Found " + errorCount + " error" + (errorCount ==1?"":"s"), Project.MSG_ERR );					throw new BuildException(FAIL_MSG, getLocation());				} else {					log(FAIL_MSG, Project.MSG_ERR);				}            }        }    }