add JavaCC .jj/.java uptodate check with warning notice

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156448 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2005-03-07 21:17:11 +00:00
parent ff6cb58371
commit 4f84a76e7b
1 changed files with 16 additions and 1 deletions

View File

@ -92,7 +92,22 @@
<!-- ================================================================== --> <!-- ================================================================== -->
<!-- Prepares the build directory --> <!-- 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="${build.dir}"/>
<mkdir dir="${dist.dir}"/> <mkdir dir="${dist.dir}"/>