*/
private Set excludes = new HashSet();
protected SourceInclusionScanner getSourceInclusionScanner()
{
StaleSourceScanner scanner = null;
if ( includes.isEmpty() )
{
includes.add( "**/*.java" );
}
if ( isForce() )
{
return new AllSourcesInclusionScanner( includes, excludes );
}
scanner = new StaleSourceScanner( getStaleMillis(), includes, excludes );
if ( getTargetFiles() != null && getTargetFiles().size() > 0 )
{
for ( Iterator it = getTargetFiles().iterator() ; it.hasNext() ;)
{
String file = (String) it.next();
scanner.addSourceMapping( new SingleTargetSourceMapping( ".java", file ) );
}
}
else
{
scanner.addSourceMapping( new SuffixMapping( ".java", ".class" ) );
}
return scanner;
}