Apache Lucene open-source search software
some minor cleanups and faster jflex classpath :-)
Uwe Schindlera4b8c40e4aab
diff --git a/lucene/common-build.xml b/lucene/common-build.xmlindex eeb49cf7a09..f8e19f13f54 100644--- a/lucene/common-build.xml+++ b/lucene/common-build.xml@@ -92,13 +92,21 @@<property name="javacc.home" location="${common.dir}"/><property name="jflex.home" location="${common.dir}"/>- <path id="jflex.classpath">+ <path id="jflex.classpath"><fileset dir="${jflex.home}/">- <include name="**/target/*.jar"/>- <include name="**/lib/*.jar"/>+ <!-- for a JFlex trunk checkout: -->+ <include name="jflex/target/*.jar"/>+ <!-- for a JFlex distribution (not yet available): -->+ <include name="lib/*.jar"/></fileset>- </path>-+ </path>++ <path id="javacc.classpath">+ <fileset dir="${javacc.home}/">+ <include name="bin/lib/*.jar"/>+ </fileset>+ </path>+<property name="backwards.dir" location="backwards"/><property name="build.dir.backwards" location="${build.dir}/backwards"/>@@ -200,16 +208,13 @@</target><target name="javacc-check">- <available- property="javacc.present"- classname="org.javacc.parser.Main"- classpath="${javacc.home}/bin/lib/javacc.jar"- />+ <available property="javacc.present" classname="org.javacc.parser.Main">+ <classpath refid="javacc.classpath"/>+ </available><fail unless="javacc.present">##################################################################JavaCC not found.JavaCC Home: ${javacc.home}- JavaCC JAR: ${javacc.jar}Please download and install JavaCC 4.1 from:diff --git a/lucene/contrib/queryparser/build.xml b/lucene/contrib/queryparser/build.xmlindex 467bfa4bd9a..44e74a2a2b9 100644--- a/lucene/contrib/queryparser/build.xml+++ b/lucene/contrib/queryparser/build.xml@@ -25,6 +25,8 @@<import file="../contrib-build.xml"/>+ <target name="compile-core" depends="javacc-notice, common.compile-core"/>+<!--NOTE: see the README.javacc for details on how to fully regenerate the parser-->