consumer.processFile( basefile.getRelativePath( ), executeOnEntireRepo ); long endTime = System.currentTimeMillis( );
consumer.processFile( basefile.getRelativePath(), executeOnEntireRepo ); long endTime = System.currentTimeMillis();
@Override public boolean evaluate( RepositoryContentConsumer object ) { boolean satisfies = false; RepositoryContentConsumer consumer = (RepositoryContentConsumer) object; if ( wantsFile( consumer, FilenameUtils.separatorsToUnix( basefile.getRelativePath( ) ) ) ) { satisfies = true; // regardless of the timestamp, we record that it was wanted so it doesn't get counted as invalid wantedFileCount++; if ( !consumer.isProcessUnmodified( ) ) { // Timestamp finished points to the last successful scan, not this current one. if ( basefile.lastModified( ) < changesSince ) { // Skip file as no change has occurred. satisfies = false; } } } return satisfies; }
@Override public boolean evaluate( Object object ) { boolean satisfies = false; if ( object instanceof RepositoryContentConsumer ) { RepositoryContentConsumer consumer = (RepositoryContentConsumer) object; if ( wantsFile( consumer, FilenameUtils.separatorsToUnix( basefile.getRelativePath() ) ) ) { satisfies = true; // regardless of the timestamp, we record that it was wanted so it doesn't get counted as invalid wantedFileCount++; if ( !consumer.isProcessUnmodified() ) { // Timestamp finished points to the last successful scan, not this current one. if ( basefile.lastModified() < changesSince ) { // Skip file as no change has occurred. satisfies = false; } } } } return satisfies; }