Sponsered Links
Categories
Sponsered Links

Ant Zip Example

 

This example illustrates how to zip and unzip your compiled class file.

<?xml version="1.0" encoding="UTF-8"?>
<project name="test" default="zip" basedir=".">

	<property name="zip" value="${ant.project.name}" />
	<property name="res" value="test.Source" />
	<property name="unzip-destination" value="unzipped" />

	<target name="clean">
		<delete file="${test}.zip" />
		<delete dir="${unzip-destination}" />
	</target>

	<target name="zip">
		<zip destfile="${test}.zip" basedir="${res}" excludes="dont*.*" />
	</target>

	<target name="unzip">
		<unzip src="${project-name}.zip" dest="${unzip-destination}" />
	</target>

</project>

 
 
Sponsered Links
Latest Updates
 
All Content of this site is for learning only. We do not warrant the correctness of its content. The risk from using it lies entirely with the user. While using this site, you agree to have read and accepted our terms of use and privacy policy.
Copyright © 2009 JSPSERVLETTUTORIAL.INFO All Right Reserved