|
|
@@ -349,6 +349,9 @@ Ant's "legacy" datatypes have been modified to behave as Resource Collections: |
|
|
|
<li><a href="#mappedresources">mappedresources</a> - generic |
|
|
|
resource collection wrapper that maps the names of the nested |
|
|
|
resources using a <a href="mapper.html">mapper</a>.</li> |
|
|
|
<li><a href="#archives">archives</a> - wraps around different |
|
|
|
resource collections and treats the nested resources as ZIP or TAR |
|
|
|
archives that will be extracted on the fly.</li> |
|
|
|
</ul> |
|
|
|
<h4><a name="resources">resources</a></h4> |
|
|
|
<p>A generic resource collection, designed for use with |
|
|
@@ -1075,5 +1078,50 @@ larger collection. <strong>Since Ant 1.7.1</strong>.</p> |
|
|
|
</pre> |
|
|
|
</blockquote> |
|
|
|
|
|
|
|
<h4><a name="archives">archives</a></h4> |
|
|
|
|
|
|
|
<p>This resource collection accepts an arbitrary number of nested |
|
|
|
resources and assumes that all those resources must be either ZIP or |
|
|
|
TAR archives. The resources returned |
|
|
|
by <code><archives></code> are the contents of the nested |
|
|
|
archives.</p> |
|
|
|
|
|
|
|
<p>This resource collection is a generalization |
|
|
|
of <a href="../CoreTasks/zip.html#zipgroupfileset">zipgroupfileset</a> |
|
|
|
which is only supported by the zip family of tasks.</p> |
|
|
|
|
|
|
|
<p><em>archives</em> doesn't support any attributes.</p> |
|
|
|
|
|
|
|
<blockquote> |
|
|
|
<h4>Parameters specified as nested elements</h4> |
|
|
|
|
|
|
|
<p><code><archives></code> has two nested |
|
|
|
elements <code><zips></code> and |
|
|
|
<code>&ls;tars></code> that are <a href="#union">unions</a> |
|
|
|
themselves, i.e. they accept arbitrary many resource(collection)s |
|
|
|
as nested elements.</p> |
|
|
|
|
|
|
|
<p>The nested resources of <zips> are treated as ZIP archives, |
|
|
|
the nested resources of <tars> as TAR archives.</p> |
|
|
|
|
|
|
|
<h4>Examples</h4> |
|
|
|
|
|
|
|
<p>Copies all files from all jars that are on the classpath |
|
|
|
to <code>${target}</code>.</p> |
|
|
|
|
|
|
|
<pre> |
|
|
|
<copy todir="${target}"> |
|
|
|
<archives> |
|
|
|
<zips> |
|
|
|
<restrict> |
|
|
|
<path path="${java.class.path}"/> |
|
|
|
<name name="*.jar"/> |
|
|
|
</restrict> |
|
|
|
</zips> |
|
|
|
</archives> |
|
|
|
</copy> |
|
|
|
</pre> |
|
|
|
</blockquote> |
|
|
|
|
|
|
|
</body> |
|
|
|
</html> |