Browse Source

Two more examles.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@738393 13f79535-47bb-0310-9956-ffa450edef68
master
Jan Materne 16 years ago
parent
commit
4ff97c4cf3
1 changed files with 21 additions and 0 deletions
  1. +21
    -0
      docs/manual/CoreTasks/unzip.html

+ 21
- 0
docs/manual/CoreTasks/unzip.html View File

@@ -205,6 +205,27 @@ configurable file system timestamp granularity.</p>
</pre>
<p>&quot;Deletes&quot; files from a zipfile.</p>

<pre>
&lt;unzip src=&quot;${ant.home}/lib/ant.jar&quot; dest=&quot;...&quot;&gt;
&lt;patternset&gt;
&lt;include name=&quot;images/&quot;/&gt;
&lt;/patternset&gt;
&lt;/unzip&gt;
</pre>
<p>This extracts all images from <tt>ant.jar</tt> which are stored in the <tt>images</tt> directory
of the Jar (or somewhere under it). While extracting the directory structure (<tt>images</tt>)
will be taken.</p>

<pre>
&lt;unzip src=&quot;${ant.home}/lib/ant.jar&quot; dest=&quot;...&quot;&gt;
&lt;patternset&gt;
&lt;include name=&quot;**/ant_logo_large.gif&quot;/&gt;
&lt;include name=&quot;**/LICENSE.txt&quot;/&gt;
&lt;/patternset&gt;
&lt;/unzip&gt;
</pre>
<p>This extracts the two files <tt>ant_logo_large.gif</tt> and <tt>LICENSE.txt</tt> from the
<tt>ant.jar</tt>. More exactly: it extracts all files with these names from anywhere in the source file. While extracting the directory structure will be taken.</p>

</body>
</html>

Loading…
Cancel
Save