From 44410bc9a972896212fe23918075ce388de6cfe5 Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Tue, 28 Aug 2012 23:29:44 +0000 Subject: [PATCH] LUCENE-4336: JavaCC tasks should use IVY git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1378381 13f79535-47bb-0310-9956-ffa450edef68 --- lucene/BUILD.txt | 24 +----------- lucene/build.xml | 10 ----- lucene/common-build.xml | 76 +----------------------------------- lucene/core/build.xml | 2 - lucene/misc/build.xml | 2 - lucene/queryparser/build.xml | 60 ++++++++++++++++++---------- 6 files changed, 42 insertions(+), 132 deletions(-) diff --git a/lucene/BUILD.txt b/lucene/BUILD.txt index 658be2b61e6..196b9863751 100644 --- a/lucene/BUILD.txt +++ b/lucene/BUILD.txt @@ -66,35 +66,13 @@ system. NOTE: the ~ character represents your user account home directory. -Step 3) Install JavaCC - -Building the Lucene distribution from the source does not require the JavaCC -parser generator, but if you wish to regenerate any of the pre-generated -parser pieces, you will need to install JavaCC. Version 4.1 is tested to -work correctly. - - http://javacc.dev.java.net - -Follow the download links and download the zip file to a temporary -location on your file system. - -After JavaCC is installed, create a build.properties file -(as in step 2), and add the line - - javacc.home=/javacc - -where this points to the root directory of your javacc installation -(the directory that contains bin/lib/javacc.jar). - -Step 4) Run ant +Step 3) Run ant Assuming you have ant in your PATH and have set ANT_HOME to the location of your ant installation, typing "ant" at the shell prompt and command prompt should run ant. Ant will by default look for the "build.xml" file in your current directory, and compile Lucene. -To rebuild any of the JavaCC-based parsers, run "ant javacc". - For further information on Lucene, go to: http://lucene.apache.org/ diff --git a/lucene/build.xml b/lucene/build.xml index 8d9c2986ca9..6401a8cbef0 100644 --- a/lucene/build.xml +++ b/lucene/build.xml @@ -452,16 +452,6 @@ - - - - - - - - - - diff --git a/lucene/common-build.xml b/lucene/common-build.xml index 12e0e1239f7..7037389096b 100644 --- a/lucene/common-build.xml +++ b/lucene/common-build.xml @@ -173,7 +173,6 @@ - @@ -185,12 +184,6 @@ - - - - - - @@ -261,23 +254,6 @@ - - - - - - - - - - - One or more of the JavaCC .jj files is newer than its corresponding - .java file. Run the "javacc" target to regenerate the artifacts. - - - @@ -391,36 +367,6 @@ - - - - - - ################################################################## - JavaCC not found. - JavaCC Home: ${javacc.home} - - Please download and install JavaCC 5.0 from: - - <http://javacc.dev.java.net> - - Then, create a build.properties file either in your home - directory, or within the Lucene directory and set the javacc.home - property to the path where JavaCC is installed. For example, - if you installed JavaCC in /usr/local/java/javacc-5.0, then set the - javacc.home property to: - - javacc.home=/usr/local/java/javacc-5.0 - - If you get an error like the one below, then you have not installed - things correctly. Please check all your paths and try again. - - java.lang.NoClassDefFoundError: org.javacc.parser.Main - ################################################################## - - - - @@ -1379,31 +1325,11 @@ ${tests-output}/junit4-*.suites - per-JVM executed suites - + - - - - - - - - - - - - diff --git a/lucene/core/build.xml b/lucene/core/build.xml index ff061d72a86..48e960bde70 100644 --- a/lucene/core/build.xml +++ b/lucene/core/build.xml @@ -38,8 +38,6 @@ - - diff --git a/lucene/misc/build.xml b/lucene/misc/build.xml index 3c5e19f64df..7ed7fbcbb97 100644 --- a/lucene/misc/build.xml +++ b/lucene/misc/build.xml @@ -19,8 +19,6 @@ - - Index tools and other miscellaneous code diff --git a/lucene/queryparser/build.xml b/lucene/queryparser/build.xml index 72e6c221dc1..ec26035455a 100644 --- a/lucene/queryparser/build.xml +++ b/lucene/queryparser/build.xml @@ -39,15 +39,10 @@ - - - + + + - - - - - @@ -64,23 +59,13 @@ - - - - - - + - - - - - - + @@ -138,4 +123,39 @@ import org.apache.lucene.queryparser.flexible.core.messages.*;" byline="true"/> + + + + + + + + + + + + + + + + + + + + + + + + + + + + +