![]()
|
Unjar/Untar/Unwar/UnzipDescriptionUnzips a zip-, war-, tar- or jarfile. For JDK 1.1 "last modified time" field is set to current time instead of being carried from the archive file. PatternSets are used to select files to extract from the archive. If no patternset is used, all files are extracted. FileSets may be used used to select archived files to perform unarchival upon. File permissions will not be restored on extracted files. The untar task recognizes the long pathname entries used by GNU tar.
Parameters
Examples
<unzip src="${tomcat_src}/tools-src.zip" dest="${tools.home}"> <patternset> <include name="**/*.java"/> <exclude name="**/Test*.java"/> </patternset> </unzip> <unzip dest="${tools.home}"> <patternset> <include name="**/*.java"/> <exclude name="**/Test*.java"/> </patternset> <fileset dir="."> <include name="**/*.zip"/> <exclude name="**/tmp*.zip"/> </fileset> </unzip> Copyright © 2000-2002 Apache Software Foundation. All rights Reserved. |