Search in sources :

Example 1 with StaleSourceScanner

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;
}
Also used : SimpleSourceInclusionScanner(org.codehaus.plexus.compiler.util.scan.SimpleSourceInclusionScanner) SourceInclusionScanner(org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner) StaleSourceScanner(org.codehaus.plexus.compiler.util.scan.StaleSourceScanner) SimpleSourceInclusionScanner(org.codehaus.plexus.compiler.util.scan.SimpleSourceInclusionScanner)

Aggregations

SimpleSourceInclusionScanner (org.codehaus.plexus.compiler.util.scan.SimpleSourceInclusionScanner)1 SourceInclusionScanner (org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner)1 StaleSourceScanner (org.codehaus.plexus.compiler.util.scan.StaleSourceScanner)1