Skip to content

Instantly share code, notes, and snippets.

@dansondergaard
Created November 13, 2010 00:50
Show Gist options
  • Save dansondergaard/674975 to your computer and use it in GitHub Desktop.
Save dansondergaard/674975 to your computer and use it in GitHub Desktop.
<!-- Run all tests, remove temporary files, zip the project directory
avoiding .class files, name the file correctly, and profit. -->
<property name="groupName" value="Batman" />
<property name="deliverDest" value="../" />
<target name="deliver" depends="test,clean">
<delete failonerror="false" file="../C${groupName}.zip" />
<zip destfile="${deliverDest}C${groupName}.zip" level="9">
<zipfileset dir="." prefix="C${groupName}/${ant.project.name}">
<exclude name="**/*.class" />
</zipfileset>
</zip>
</target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment