You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ce...@apache.org on 2020/03/06 15:22:16 UTC
svn commit: r1874901 - /poi/trunk/build.xml
Author: centic
Date: Fri Mar 6 15:22:16 2020
New Revision: 1874901
URL: http://svn.apache.org/viewvc?rev=1874901&view=rev
Log:
Do not recompile Version.java unless build.xml (i.e. version) changes
Modified:
poi/trunk/build.xml
Modified: poi/trunk/build.xml
URL: http://svn.apache.org/viewvc/poi/trunk/build.xml?rev=1874901&r1=1874900&r2=1874901&view=diff
==============================================================================
--- poi/trunk/build.xml (original)
+++ poi/trunk/build.xml Fri Mar 6 15:22:16 2020
@@ -1388,7 +1388,17 @@ under the License.
</copy-->
</target>
- <target name="compile-version" depends="init"
+ <target name="-version-java-check">
+ <!-- recompile Version.java from the template whenever source or the version in build.xml changes -->
+ <uptodate property="version.java.notRequired" targetfile="${main.output.dir}/org/apache/poi/Version.class">
+ <srcfiles file="src/resources/version/Version.java.template"/>
+ <srcfiles file="build.xml"/>
+ </uptodate>
+ </target>
+
+ <target name="compile-version"
+ unless="version.java.notRequired"
+ depends="init, -version-java-check"
description="Compiles the version class">
<!-- Generate the .java file -->
<property name="version.java" value="${main.output.dir}/org/apache/poi/Version.java"/>
@@ -1408,6 +1418,7 @@ under the License.
srcdir="${main.output.dir}"
encoding="${java.source.encoding}" includeantruntime="false">
</javac>
+
<!-- Tidy up -->
<delete file="${version.java}"/>
</target>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org