LOGGER.info("performing grammar generation [" + generationPlan.getId() + "]");
//noinspection ResultOfMethodCallIgnored
generationPlan.getGenerationDirectory().mkdirs();
ANTLR antlr = new ANTLR();
antlr.setProject(getAnt().getAntProject());
Path antlrTaskClasspath = antlr.createClasspath();
for (File dep : getAntlrClasspath()) {
antlrTaskClasspath.createPathElement().setLocation(dep);
}
antlr.setTrace(trace);
antlr.setTraceLexer(traceLexer);
antlr.setTraceParser(traceParser);
antlr.setTraceTreeWalker(traceTreeWalker);
antlr.setOutputdirectory(generationPlan.getGenerationDirectory());
antlr.setTarget(generationPlan.getSource());
antlr.execute();
}
}