* Creates a source inclusion scanner.
*
* @return The inclusion scanner.
*/
private SourceInclusionScanner getSourceInclusionScanner() {
SourceInclusionScanner scanner = null;
if (includes == null) {
includes = new HashSet<String>();
}
if (excludes == null) {
excludes = new HashSet<String>();
}
if (includes.isEmpty() && excludes.isEmpty()) {
includes = Collections.singleton("**/*Model.java");
scanner = new SimpleSourceInclusionScanner(includes, excludes);
} else {
if (includes.isEmpty()) {
includes = Collections.singleton("**/*Model.java");
}
scanner = new SimpleSourceInclusionScanner(includes, excludes);
}
scanner.addSourceMapping(new SourceMapping() {
@SuppressWarnings("rawtypes")
@Override
public Set getTargetFiles(File targetDir, String source) {
return null;