Author: jhm
Date: Wed Jan 28 07:38:53 2009
New Revision: 738393

URL: http://svn.apache.org/viewvc?rev=738393&view=rev
Log:
Two more examles.

Modified:
    ant/core/trunk/docs/manual/CoreTasks/unzip.html

Modified: ant/core/trunk/docs/manual/CoreTasks/unzip.html
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/docs/manual/CoreTasks/unzip.html?rev=738393&r1=738392&r2=738393&view=diff
==============================================================================
--- ant/core/trunk/docs/manual/CoreTasks/unzip.html (original)
+++ ant/core/trunk/docs/manual/CoreTasks/unzip.html Wed Jan 28 07:38:53 2009
@@ -205,6 +205,27 @@
 </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>


Reply via email to