use of org.codehaus.plexus.compiler.util.scan.StaleSourceScanner in project jangaroo-tools by CoreMedia.
the class MavenPluginHelper method createSourceInclusionScanner.
private SourceInclusionScanner createSourceInclusionScanner(Set<String> includes, Set<String> excludes, String inputFileSuffix, int staleMillis) {
SourceInclusionScanner scanner;
if (staleMillis >= 0 && includes.isEmpty() && excludes.isEmpty()) {
scanner = new StaleSourceScanner(staleMillis);
} else {
if (includes.isEmpty()) {
includes.add("**/*" + inputFileSuffix);
}
scanner = staleMillis >= 0 ? new StaleSourceScanner(staleMillis, includes, excludes) : new SimpleSourceInclusionScanner(includes, excludes);
}
log.debug("Using source inclusion scanner " + scanner);
return scanner;
}
Aggregations