File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
local-build-plugins/src/main/java/org/hibernate/orm/antlr Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ private void generateLexer(File outputDir) {
117117
118118 execOperations .javaexec (
119119 (javaExecSpec ) -> {
120- javaExecSpec .setMain ( "org.antlr.v4.Tool" );
120+ javaExecSpec .getMainClass (). set ( "org.antlr.v4.Tool" );
121121 javaExecSpec .classpath ( getProject ().getConfigurations ().getByName ( "antlr" ) );
122122 javaExecSpec .args (
123123 "-o" , getProject ().relativePath ( outputDir .getAbsolutePath () ),
@@ -141,7 +141,7 @@ private void generateParser(File outputDir) {
141141
142142 execOperations .javaexec (
143143 (javaExecSpec ) -> {
144- javaExecSpec .setMain ( "org.antlr.v4.Tool" );
144+ javaExecSpec .getMainClass (). set ( "org.antlr.v4.Tool" );
145145 javaExecSpec .classpath ( getProject ().getConfigurations ().named ( "antlr" ) );
146146 javaExecSpec .args (
147147 "-o" , getProject ().relativePath ( outputDir .getAbsolutePath () ),
You can’t perform that action at this time.
0 commit comments