You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- <?xml version="1.0"?>
-
- <project name="zip-test" basedir="." default="test1">
-
- <target name="test1">
- <zip/>
- </target>
-
- <target name="test2">
- <zip zipfile="zip.tmp"/>
- </target>
-
- <!-- Test when the zip file includes itself
- when target file exists before the zip task is run -->
- <target name="test3">
- <touch file="test3.zip"/>
- <zip zipfile="test3.zip"
- basedir="."/>
- </target>
-
- <!-- Test when the zip file includes itself
- when target file does not exist before the zip task is run -->
- <target name="test4">
- <zip zipfile="test4.zip"
- basedir="."/>
- </target>
-
- <target name="test5">
- <zip zipfile="test5.zip" basedir="." >
- <exclude name="test5.zip" />
- </zip>
- </target>
-
- <target name="test6">
- <zip zipfile="test6.zip" basedir=".">
- <include name="*.xml" />
- <exclude name="zip.*" />
- </zip>
- </target>
-
- <target name="test7">
- <zip zipfile="inner7.zip" basedir="." >
- <exclude name="inner7.zip" />
- </zip>
- <zip zipfile="test7.zip" basedir=".">
- <exclude name="**/*.*" />
- <zipfileset src="inner7.zip" />
- </zip>
- </target>
-
-
-
- <target name="cleanup">
- <delete file="test3.zip"/>
- <delete file="test4.zip"/>
- <delete file="test5.zip"/>
- <delete file="test6.zip"/>
- <delete file="inner7.zip"/>
- <delete file="test7.zip"/>
- </target>
- </project>
|