|
@@ -87,8 +87,25 @@ any of the DTD files in the <code>${src}/xml</code> directory.</p> |
|
|
<mapper type="merge" to="${deploy}\xmlClasses.jar"/> |
|
|
<mapper type="merge" to="${deploy}\xmlClasses.jar"/> |
|
|
</uptodate></pre> |
|
|
</uptodate></pre> |
|
|
as well. |
|
|
as well. |
|
|
|
|
|
|
|
|
|
|
|
The <code>xmlBuild.notRequired</code> property can then be used in a |
|
|
|
|
|
<code><target></code> tag's <code>unless</code> attribute to |
|
|
|
|
|
conditionally run that target. For example, running the following target:</p> |
|
|
|
|
|
<pre> |
|
|
|
|
|
<target name="xmlBuild" depends="chkXmlBuild" unless="xmlBuild.notRequired"> |
|
|
|
|
|
... |
|
|
|
|
|
</target> |
|
|
|
|
|
</pre> |
|
|
|
|
|
will first run the <code>chkXmlBuild</code> target, which contains |
|
|
|
|
|
the <code><uptodate></code> task that determines whether |
|
|
|
|
|
<code>xmlBuild.notRequired</code> gets set. The property named in |
|
|
|
|
|
the <code>unless</code> attribute is then checked for being set/not set. |
|
|
|
|
|
If it did get set (ie., the jar file is up-to-date), |
|
|
|
|
|
then the <code>xmlBuild</code> target won't be run. |
|
|
</p> |
|
|
</p> |
|
|
|
|
|
|
|
|
|
|
|
<p> The following example shows a single source file being checked |
|
|
|
|
|
against a single target file:</p> |
|
|
<pre> <uptodate property="isUpToDate" |
|
|
<pre> <uptodate property="isUpToDate" |
|
|
srcfile="/usr/local/bin/testit" |
|
|
srcfile="/usr/local/bin/testit" |
|
|
targetfile="${build}/.flagfile"/> |
|
|
targetfile="${build}/.flagfile"/> |
|
|