use of org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner in project tycho by eclipse.
the class AbstractOsgiCompilerMojo method getSourceInclusionScanner.
@Override
protected SourceInclusionScanner getSourceInclusionScanner(String inputFileEnding) {
SourceInclusionScanner scanner = null;
if (includes.isEmpty() && excludes.isEmpty()) {
includes = Collections.singleton("**/*." + inputFileEnding);
scanner = new SimpleSourceInclusionScanner(includes, Collections.<String>emptySet());
} else {
if (includes.isEmpty()) {
includes.add("**/*." + inputFileEnding);
}
scanner = new SimpleSourceInclusionScanner(includes, excludes);
}
return scanner;
}
Aggregations