groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject groovy git commit: allow antlr4 parser to be turned off
Date Fri, 12 May 2017 02:39:50 GMT
Repository: groovy
Updated Branches:
  refs/heads/parrot f42c8b86e -> 9d2f6f193


allow antlr4 parser to be turned off


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/9d2f6f19
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/9d2f6f19
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/9d2f6f19

Branch: refs/heads/parrot
Commit: 9d2f6f1939f49eea301fbe17e928d5f4a9a4b60d
Parents: f42c8b8
Author: paulk <paulk@asert.com.au>
Authored: Fri May 12 12:39:27 2017 +1000
Committer: paulk <paulk@asert.com.au>
Committed: Fri May 12 12:39:27 2017 +1000

----------------------------------------------------------------------
 subprojects/parser-antlr4/build.gradle | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/9d2f6f19/subprojects/parser-antlr4/build.gradle
----------------------------------------------------------------------
diff --git a/subprojects/parser-antlr4/build.gradle b/subprojects/parser-antlr4/build.gradle
index 56c9c11..78e5c74 100644
--- a/subprojects/parser-antlr4/build.gradle
+++ b/subprojects/parser-antlr4/build.gradle
@@ -17,6 +17,18 @@
  *  under the License.
  */
 
+if (rootProject.hasProperty('useAntlr4') && !Boolean.valueOf(rootProject.getProperty('useAntlr4')))
{
+    allprojects {
+        tasks.withType(GroovyCompile) {
+            groovyOptions.forkOptions.jvmArgs += ["-Dgroovy.antlr4=false"]
+        }
+    }
+    test {
+        jvmArgs "-Dgroovy.antlr4=false"
+    }
+    return
+}
+
 apply plugin: 'me.champeau.gradle.antlr4'
 
 def srcBase = "subprojects/parser-antlr4/src"


Mime
View raw message