getLog().info("Adding input source: " + inputSource.getPath());
builder.addInputSource(inputSource);
}
builder.build();
final ProcessingManager processing = new QueueProcessingManager(factory);
for (final String processor : processors) {
getLog().info("Adding processor: " + processor);
if (processor.endsWith(".groovy")) {
final File script = new File(processor);
if (script.exists()) {
processing.addProcessor(new GroovyProcessor<CtElement>(script));
}
} else {
processing.addProcessor(processor);
}
}
processing.addProcessor(new JavaOutputProcessor(outputDirectory));
processing.process();
}