Commit cfad83e8 authored by Fred Eisele's avatar Fred Eisele
Browse files

corrected error in ordering of antlr arguments

parent 9a8bbe8c
......@@ -90,8 +90,7 @@ class Antlr4Task extends DefaultTask {
lexerTool.processGrammarsOnCommandLine();
}
catch (Exception ex) {
logger.quiet 'lexer: ' + lexerArgsArray;
logger.quiet 'cause: '+ ex.getLocalizedMessage();
logger.quiet 'error lexxing: ' + lexerArgsArray;
throw new GradleException(ex.message)
}
......@@ -103,12 +102,12 @@ class Antlr4Task extends DefaultTask {
parserArgs.push(parserGrammar);
String[] parserArgsArray = parserArgs.toArray(new String[parserArgs.size()]);
logger.quiet 'parsing: ' + parserArgsArray;
try {
Tool parserTool = new Tool(parserArgsArray);
parserTool.processGrammarsOnCommandLine();
}
catch (Exception ex) {
logger.quiet 'error parsing: ' + parserArgsArray;
throw new GradleException(ex.message)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment