LUCENE-1353: Javacc target to generate precedence query parser.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@685114 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Doron Cohen 2008-08-12 10:49:59 +00:00
parent 4d33a23bd2
commit 027307857e
2 changed files with 17 additions and 0 deletions

View File

@ -267,6 +267,9 @@ Build
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
1. LUCENE-1238: Fixed intermittent failures of TestTimeLimitedCollector.testTimeoutMultiThreaded.

View File

@ -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>