Because we're doing something atypical, storing generated artifacts in the repository, its tricky to ensure

up-to-dateness.  Because generation is an infrequent activity, deleting the main .java file for each of the .jj
files is good enough to ensure everything gets regenerated.



git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156445 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2005-03-07 20:28:25 +00:00
parent be8ae58254
commit c33696e120
1 changed files with 12 additions and 1 deletions

View File

@ -596,7 +596,18 @@
/>
</target>
<target name="javacc" depends="javacc-StandardAnalyzer,javacc-QueryParser,javacc-PrecedenceQueryParser,javacc-HTMLParser"/>
<target name="clean-javacc">
<delete>
<fileset dir="src">
<include name="java/org/apache/lucene/analysis/standard/StandardTokenizer.java"/>
<include name="java/org/apache/lucene/queryParser/QueryParser.java"/>
<include name="java/org/apache/lucene/queryParser/precedence/PrecedenceQueryParser.java"/>
<include name="demo/org/apache/lucene/demo/html/HTMLParser.java"/>
</fileset>
</delete>
</target>
<target name="javacc" depends="clean-javacc,javacc-StandardAnalyzer,javacc-QueryParser,javacc-PrecedenceQueryParser,javacc-HTMLParser"/>
<macrodef name="invoke-javacc">
<attribute name="target"/>