lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ehatc...@apache.org
Subject svn commit: r156448 - lucene/java/trunk/build.xml
Date Mon, 07 Mar 2005 21:17:13 GMT
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}"/>
 



Mime
View raw message