lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dor...@apache.org
Subject svn commit: r685114 - in /lucene/java/trunk: CHANGES.txt contrib/miscellaneous/build.xml
Date Tue, 12 Aug 2008 10:50:00 GMT
Author: doronc
Date: Tue Aug 12 03:49:59 2008
New Revision: 685114

URL: http://svn.apache.org/viewvc?rev=685114&view=rev
Log:
LUCENE-1353: Javacc target to generate precedence query parser.

Modified:
    lucene/java/trunk/CHANGES.txt
    lucene/java/trunk/contrib/miscellaneous/build.xml

Modified: lucene/java/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/java/trunk/CHANGES.txt?rev=685114&r1=685113&r2=685114&view=diff
==============================================================================
--- lucene/java/trunk/CHANGES.txt (original)
+++ lucene/java/trunk/CHANGES.txt Tue Aug 12 03:49:59 2008
@@ -266,6 +266,9 @@
      with contribs.  Of particular note: a single clover db is used
      regardless of whether tests are run globally or in the specific
      contrib directories. 
+     
+  3. LUCENE-1353: Javacc target in contrib/miscellaneous for 
+     generating the precedence query parser. 
 
 Test Cases
 

Modified: lucene/java/trunk/contrib/miscellaneous/build.xml
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/miscellaneous/build.xml?rev=685114&r1=685113&r2=685114&view=diff
==============================================================================
--- lucene/java/trunk/contrib/miscellaneous/build.xml (original)
+++ lucene/java/trunk/contrib/miscellaneous/build.xml Tue Aug 12 03:49:59 2008
@@ -26,4 +26,18 @@
   </description>
 
   <import file="../contrib-build.xml"/>
+
+  <property name="javacc.path" location="src/java/org/apache/lucene/queryParser/precedence"/>
+
+  <target name="javacc" depends="javacc-check" description="generate precedence query
parser from jj (requires javacc 3.2)">
+    <delete>
+      <fileset dir="${javacc.path}" includes="*.java">
+        <containsregexp expression="Generated.*By.*JavaCC"/>
+      </fileset>
+    </delete>
+    <invoke-javacc target="${javacc.path}/PrecedenceQueryParser.jj"
+                   outputDir="${javacc.path}"
+    />
+  </target>
+
 </project>



Mime
View raw message