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 { ...@@ -90,8 +90,7 @@ class Antlr4Task extends DefaultTask {
lexerTool.processGrammarsOnCommandLine(); lexerTool.processGrammarsOnCommandLine();
} }
catch (Exception ex) { catch (Exception ex) {
logger.quiet 'lexer: ' + lexerArgsArray; logger.quiet 'error lexxing: ' + lexerArgsArray;
logger.quiet 'cause: '+ ex.getLocalizedMessage();
throw new GradleException(ex.message) throw new GradleException(ex.message)
} }
...@@ -103,12 +102,12 @@ class Antlr4Task extends DefaultTask { ...@@ -103,12 +102,12 @@ class Antlr4Task extends DefaultTask {
parserArgs.push(parserGrammar); parserArgs.push(parserGrammar);
String[] parserArgsArray = parserArgs.toArray(new String[parserArgs.size()]); String[] parserArgsArray = parserArgs.toArray(new String[parserArgs.size()]);
logger.quiet 'parsing: ' + parserArgsArray;
try { try {
Tool parserTool = new Tool(parserArgsArray); Tool parserTool = new Tool(parserArgsArray);
parserTool.processGrammarsOnCommandLine(); parserTool.processGrammarsOnCommandLine();
} }
catch (Exception ex) { catch (Exception ex) {
logger.quiet 'error parsing: ' + parserArgsArray;
throw new GradleException(ex.message) throw new GradleException(ex.message)
} }
......
Supports Markdown
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