CompilerLogger logger = new CompilerLogger(new PrintCompilerLogHandler(System.out));
ParserSpecProcessor.normalizeParser(extension, logger);
} catch (CopperException e) {
throw new BuildException(e);
}
ParserCompilerParameters pcp = new ParserCompilerParameters();
ByteArrayOutputStream target = new ByteArrayOutputStream();
pcp.setOutputStream(new PrintStream(target));
pcp.setOutputType(CopperIOType.STREAM);
try {
ParserCompiler.compile(extension, pcp);
} catch (CopperException e) {