|
|
@@ -117,6 +117,38 @@ nested element.</p> |
|
|
|
<mapper type="flatten"/> |
|
|
|
</unzip> |
|
|
|
</pre> |
|
|
|
|
|
|
|
<h3>Related tasks</h3> |
|
|
|
|
|
|
|
<pre> |
|
|
|
<unzip src="some-archive" dest="some-dir"< |
|
|
|
<patternset> |
|
|
|
<include name="some-pattern"/> |
|
|
|
</patternset> |
|
|
|
<mapper type="some-mapper"/> |
|
|
|
</unzip> |
|
|
|
</pre> |
|
|
|
|
|
|
|
is identical to |
|
|
|
|
|
|
|
<pre> |
|
|
|
<copy todir="some-dir" preservelastmodified="true"< |
|
|
|
<zipfileset src="some-archive"> |
|
|
|
<patternset> |
|
|
|
<include name="some-pattern"/> |
|
|
|
</patternset> |
|
|
|
</zipfileset> |
|
|
|
<mapper type="some-mapper"/> |
|
|
|
</copy> |
|
|
|
</pre> |
|
|
|
|
|
|
|
<p>The same is also true for <code><untar></code> and |
|
|
|
<code><tarfileset></code>. <code><copy></code> offers |
|
|
|
additional features like <a |
|
|
|
href="../CoreTypes/filterchains.html">filtering files</a> on the fly, |
|
|
|
allowing a file to be mapped to multiple destinations or a |
|
|
|
configurable file system timestamp granularity.</p> |
|
|
|
|
|
|
|
<hr> |
|
|
|
<p align="center">Copyright © 2000-2005 The Apache Software Foundation. All rights |
|
|
|
Reserved.</p> |
|
|
|