mirror of https://github.com/apache/lucene.git
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:
parent
ff6cb58371
commit
4f84a76e7b
17
build.xml
17
build.xml
|
@ -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}"/>
|
||||
|
||||
|
|
Loading…
Reference in New Issue