Author: ehatcher
Date: Mon Mar 7 13:17:11 2005
New Revision: 156448
URL: http://svn.apache.org/viewcvs?view=rev&rev=156448
Log:
add JavaCC .jj/.java uptodate check with warning notice
Modified:
lucene/java/trunk/build.xml
Modified: lucene/java/trunk/build.xml
URL:
http://svn.apache.org/viewcvs/lucene/java/trunk/build.xml?view=diff&r1=156447&r2=156448
==============================================================================
--- lucene/java/trunk/build.xml (original)
+++ lucene/java/trunk/build.xml Mon Mar 7 13:17:11 2005
@@ -92,7 +92,22 @@
<!-- ================================================================== -->
<!-- Prepares the build directory -->
<!-- ================================================================== -->
- <target name="init">
+ <target name="javacc-uptodate-check">
+ <uptodate property="javacc.files.uptodate">
+ <srcfiles dir="src" includes="**/*.jj" />
+ <mapper type="glob" from="*.jj" to="*.java"/>
+ </uptodate>
+ <echo>${javacc.files.uptodate}</echo>
+ </target>
+
+ <target name="javacc-notice" unless="javacc.files.uptodate">
+ <echo>
+ One or more of the JavaCC .jj files is newer than its corresponding
+ .java file. Run the "javacc" target to regenerate the artifacts.
+ </echo>
+ </target>
+
+ <target name="init" depends="javacc-uptodate-check, javacc-notice">
<mkdir dir="${build.dir}"/>
<mkdir dir="${dist.dir}"/>