Skip to content

Commit

Permalink
Update generated ANTLR lexer/parser to match runtime version (#3297)
Browse files Browse the repository at this point in the history
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
  • Loading branch information
reta authored May 13, 2022
1 parent 3aef125 commit 065e3cb
Show file tree
Hide file tree
Showing 3 changed files with 613 additions and 527 deletions.
6 changes: 3 additions & 3 deletions modules/lang-painless/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ tasks.register("generateContextDoc", DefaultTestClustersTask) {
useCluster testClusters.generateContextCluster
doFirst {
project.javaexec {
main = 'org.opensearch.painless.ContextDocGenerator'
mainClass = 'org.opensearch.painless.ContextDocGenerator'
classpath = sourceSets.doc.runtimeClasspath
systemProperty "cluster.uri", "${-> testClusters.generateContextCluster.singleNode().getAllHttpSocketURI().get(0)}"
}.assertNormalExitValue()
Expand Down Expand Up @@ -172,7 +172,7 @@ tasks.register("cleanGenerated", Delete) {

tasks.register("regenLexer", JavaExec) {
dependsOn "cleanGenerated"
main = 'org.antlr.v4.Tool'
mainClass = 'org.antlr.v4.Tool'
classpath = configurations.regenerate
systemProperty 'file.encoding', 'UTF-8'
systemProperty 'user.language', 'en'
Expand All @@ -186,7 +186,7 @@ tasks.register("regenLexer", JavaExec) {

tasks.register("regenParser", JavaExec) {
dependsOn "regenLexer"
main = 'org.antlr.v4.Tool'
mainClass = 'org.antlr.v4.Tool'
classpath = configurations.regenerate
systemProperty 'file.encoding', 'UTF-8'
systemProperty 'user.language', 'en'
Expand Down
Loading

0 comments on commit 065e3cb

Please sign in to comment.