Skip to content

Commit

Permalink
build: run antlr in a separate process
Browse files Browse the repository at this point in the history
Running antlr in the same JVM as ant itself fails on Fedora 40, reason
unknown. The JVM quits with exit code 0 after performing the antlr task
and doesn't go on to the compilation tasks. Perhaps Fedora 40's antlr
has a System.exit(0) somewhere.

Workaround by forking to a new process.

Closes: #396
  • Loading branch information
avikivity authored and denesb committed Jun 10, 2024
1 parent 82e3d0c commit 76a2682
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@
<echo>Building Grammar ${build.src.antlr}/Cql.g ...</echo>
<java classname="org.antlr.Tool"
classpathref="cql3-grammar.classpath"
fork="true"
failonerror="true">
<arg value="-Xconversiontimeout" />
<arg value="10000" />
Expand Down

0 comments on commit 76a2682

Please sign in to comment.