Package org.apache.tools.ant.taskdefs.optional

Examples of org.apache.tools.ant.taskdefs.optional.ANTLR


            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();
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.tools.ant.taskdefs.optional.ANTLR

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.