|
@@ -70,7 +70,10 @@ attribute or nested <code><srcfiles></code> elements, but not both. |
|
|
<p>The nested <code><mapper></code> element allows you to specify |
|
|
<p>The nested <code><mapper></code> element allows you to specify |
|
|
a set of target files to check for being up-to-date with respect to a |
|
|
a set of target files to check for being up-to-date with respect to a |
|
|
set of source files.</p> |
|
|
set of source files.</p> |
|
|
|
|
|
|
|
|
|
|
|
<p> |
|
|
|
|
|
The mapper "to" attribute is relative to the target file, or to |
|
|
|
|
|
the "dir" attribute of the nested srcfiles element. |
|
|
|
|
|
</p> |
|
|
<h3>Examples</h3> |
|
|
<h3>Examples</h3> |
|
|
<pre> <uptodate property="xmlBuild.notRequired" targetfile="${deploy}\xmlClasses.jar" > |
|
|
<pre> <uptodate property="xmlBuild.notRequired" targetfile="${deploy}\xmlClasses.jar" > |
|
|
<srcfiles dir= "${src}/xml" includes="**/*.dtd"/> |
|
|
<srcfiles dir= "${src}/xml" includes="**/*.dtd"/> |
|
@@ -111,9 +114,30 @@ against a single target file:</p> |
|
|
if <code>/usr/local/bin/testit</code> is newer than |
|
|
if <code>/usr/local/bin/testit</code> is newer than |
|
|
<code>${build}/.flagfile</code>.</p> |
|
|
<code>${build}/.flagfile</code>.</p> |
|
|
</p> |
|
|
</p> |
|
|
|
|
|
<p> |
|
|
|
|
|
The following shows usage of a relative mapper. |
|
|
|
|
|
</p> |
|
|
|
|
|
<pre> |
|
|
|
|
|
<uptodate property="checkUptodate.uptodate"> |
|
|
|
|
|
<srcfiles dir="src" includes="*" /> |
|
|
|
|
|
<mapper type="merge" to="../dest/output.done"/> |
|
|
|
|
|
</uptodate> |
|
|
|
|
|
<echo message="checkUptodate result: ${checkUptodate.uptodate}" /> |
|
|
|
|
|
</pre> |
|
|
|
|
|
<p> |
|
|
|
|
|
The previous example can be a bit confusing, so it may be better to |
|
|
|
|
|
use absolute paths: |
|
|
|
|
|
</p> |
|
|
|
|
|
<pre> |
|
|
|
|
|
<property name="dest.dir" location="dest"/> |
|
|
|
|
|
<uptodate property="checkUptodate.uptodate"> |
|
|
|
|
|
<srcfiles dir="src" includes="*" /> |
|
|
|
|
|
<mapper type="merge" to="${dest.dir}/output.done"/> |
|
|
|
|
|
</uptodate> |
|
|
|
|
|
</pre> |
|
|
|
|
|
|
|
|
<hr> |
|
|
<hr> |
|
|
<p align="center">Copyright © 2000-2002 Apache Software Foundation. |
|
|
|
|
|
|
|
|
<p align="center">Copyright © 2000-2003 Apache Software Foundation. |
|
|
All rights Reserved.</p> |
|
|
All rights Reserved.</p> |
|
|
|
|
|
|
|
|
</body> |
|
|
</body> |
|
|