You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by jh...@apache.org on 2009/01/28 08:38:54 UTC
svn commit: r738393 - /ant/core/trunk/docs/manual/CoreTasks/unzip.html
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>"Deletes" files from a zipfile.</p>
+<pre>
+<unzip src="${ant.home}/lib/ant.jar" dest="...">
+ <patternset>
+ <include name="images/"/>
+ </patternset>
+</unzip>
+</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>
+<unzip src="${ant.home}/lib/ant.jar" dest="...">
+ <patternset>
+ <include name="**/ant_logo_large.gif"/>
+ <include name="**/LICENSE.txt"/>
+ </patternset>
+</unzip>
+</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>