From 0d101f484110d58ca9570cd102fa05ebdbbe9d76 Mon Sep 17 00:00:00 2001 From: Charlie Root Date: Fri, 9 Nov 2012 18:35:00 +0000 Subject: [PATCH] SILENT: ABF Import --- .abf.yml | 6 ++ .gitignore | 5 ++ antlr-pom.patch | 149 +++++++++++++++++++++++++++++++ antlr-python-3.1.2-version.patch | 37 ++++++++ 4 files changed, 197 insertions(+) create mode 100644 .abf.yml create mode 100644 .gitignore create mode 100644 antlr-pom.patch create mode 100644 antlr-python-3.1.2-version.patch diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..579b0a3 --- /dev/null +++ b/.abf.yml @@ -0,0 +1,6 @@ +sources: + "antlr3:" 4e02f3b099d80fd2630f599bb5b6a42381ec3913 + "antlr-3.2.tar.gz:" 4cd20a66a2ac19710d0617d9d69e321a9fa7152b + "antlr-javascript-runtime-3.1.zip:" c7827e3f5315f7688fbbd04e22863213802ac627 + "antlr_python_runtime-3.1.2.tar.gz:" c57d4a03f80d157e9c0c1c8cd3038171900a364c + "libantlr3c-3.2.tar.gz:" 89bfa4fbed8af7e089bff065a1ac8834a8deb493 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1f899e4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +antlr3 +antlr-3.2.tar.gz +antlr-javascript-runtime-3.1.zip +antlr_python_runtime-3.1.2.tar.gz +libantlr3c-3.2.tar.gz diff --git a/antlr-pom.patch b/antlr-pom.patch new file mode 100644 index 0000000..c9ba6d9 --- /dev/null +++ b/antlr-pom.patch @@ -0,0 +1,149 @@ +diff -up ./gunit-maven-plugin/pom.xml.pomfix ./gunit-maven-plugin/pom.xml +--- ./gunit-maven-plugin/pom.xml.pomfix 2010-10-12 17:09:19.304549001 -0400 ++++ ./gunit-maven-plugin/pom.xml 2010-10-12 17:09:52.489549017 -0400 +@@ -163,6 +163,12 @@ + + + ++ org.apache.maven ++ maven-artifact ++ 2.2.1 ++ ++ ++ + org.codehaus.plexus + plexus-compiler-api + 1.5.3 +diff -up ./gunit/pom.xml.pomfix ./gunit/pom.xml +--- ./gunit/pom.xml.pomfix 2009-09-23 14:50:28.000000000 -0400 ++++ ./gunit/pom.xml 2010-10-12 17:05:12.000000000 -0400 +@@ -142,16 +142,6 @@ + maven-surefire-plugin + + +- +- org.codehaus.mojo +- findbugs-maven-plugin +- +- true +- true +- true +- +- +- + + + +diff -up ./pom.xml.pomfix ./pom.xml +--- ./pom.xml.pomfix 2009-09-23 14:46:18.000000000 -0400 ++++ ./pom.xml 2010-10-12 17:05:12.770549001 -0400 +@@ -146,25 +146,6 @@ + + + +- +- org.codehaus.mojo +- buildnumber-maven-plugin +- +- {0,date,MMM dd, yyyy} {0,time,kk:mm:ss} +- +- timestamp +- +- +- +- +- validate +- +- create +- +- +- +- +- + + maven-compiler-plugin + +@@ -179,16 +160,6 @@ + + + +- org.codehaus.mojo +- findbugs-maven-plugin +- +- true +- true +- true +- +- +- +- + + ++ <_nouses>true ++ antlr.org ++ org.antlr.runtime ++ org.antlr.*;version=${project.version} ++ ++ ++ ++ ++ ++ bundle-manifest ++ process-classes ++ ++ manifest ++ ++ ++ ++ + + + +diff -up ./tool/pom.xml.pomfix ./tool/pom.xml +--- ./tool/pom.xml.pomfix 2009-09-23 14:50:28.000000000 -0400 ++++ ./tool/pom.xml 2010-10-12 17:05:12.000000000 -0400 +@@ -59,7 +59,7 @@ + + org.antlr + antlr3-maven-plugin +- 3.1.3-1 ++ 3.2 + + target/generated-sources/antlr/org/antlr/grammar/v3 + +@@ -77,6 +77,7 @@ + + org.codehaus.mojo + antlr-maven-plugin ++ 2.1 + + src/main/antlr2/org/antlr/grammar/v2 + antlr.g codegen.g, antlr.print.g, assign.types.g, buildnfa.g, define.g diff --git a/antlr-python-3.1.2-version.patch b/antlr-python-3.1.2-version.patch new file mode 100644 index 0000000..ee9800c --- /dev/null +++ b/antlr-python-3.1.2-version.patch @@ -0,0 +1,37 @@ +--- antlr_python_runtime-3.1.2/antlr3/recognizers.py.orig 2010-05-01 13:30:01.000000000 +0200 ++++ antlr_python_runtime-3.1.2/antlr3/recognizers.py 2010-05-01 13:36:00.000000000 +0200 +@@ -164,24 +164,20 @@ + self._state = state + + if self.antlr_version > runtime_version: +- raise RuntimeError( +- "ANTLR version mismatch: " +- "The recognizer has been generated by V%s, but this runtime " +- "is V%s. Please use the V%s runtime or higher." +- % (self.antlr_version_str, +- runtime_version_str, +- self.antlr_version_str)) ++ print >> sys.stderr, """ ++ WARNING: ANTLR version mismatch: ++ The recognizer has been generated by V%s, but this runtime ++ is V%s, this may not work correctly. Please use the V%s runtime or higher.""" % ( ++ self.antlr_version_str, runtime_version_str, self.antlr_version_str) + elif (self.antlr_version < (3, 1, 0, 0) and + self.antlr_version != runtime_version): + # FIXME: make the runtime compatible with 3.0.1 codegen + # and remove this block. +- raise RuntimeError( +- "ANTLR version mismatch: " +- "The recognizer has been generated by V%s, but this runtime " +- "is V%s. Please use the V%s runtime." +- % (self.antlr_version_str, +- runtime_version_str, +- self.antlr_version_str)) ++ print >> sys.stderr, """ ++ WARNING ANTLR version mismatch: ++ The recognizer has been generated by V%s, but this runtime ++ is V%s, this may not work correctly. Please use the V%s runtime.""" % ( ++ self.antlr_version_str, runtime_version_str, self.antlr_version_str) + + # this one only exists to shut up pylint :( + def setInput(self, input):