<zip destfile="phing.zip"> <fileset dir="."> <include name="**/**" /> </fileset> </zip>
The above example uses a fileset to determine which files to include in the archive.
<zip destfile="phing.zip" basedir="."/>
The second example uses the basedir attribute to include the contents of that directory (including subdirectories) in the archive.