Updated to RIFE2 and bld 1.5.17

This commit is contained in:
Geert Bevin 2023-04-04 17:35:06 -04:00
parent 8fe746cf75
commit 7e63bbd663
7 changed files with 36 additions and 9 deletions

View file

@ -21,7 +21,7 @@ private final CompileOperation compileOperation = new CompileOperation();
@BuildCommand(summary = "Generates the grammar Java sources")
public void generateGrammar()
throws Exception {
antlr4Operation.executeOnce(o -> o
antlr4Operation.executeOnce(() -> antlr4Operation
.sourceDirectories(List.of(new File(srcMainDirectory(), "antlr")))
.outputDirectory(new File(buildDirectory(), "generated"))
// these options are specific to ANTLR4, please refer to the extension
@ -36,7 +36,7 @@ throws Exception {
generateGrammar();
// include the generated grammar with the main sources
compileOperation.executeOnce(o -> o
compileOperation.executeOnce(() -> compileOperation
.fromProject(this)
.mainSourceDirectories(List.of(antlr4Operation.outputDirectory())));
}