Skip to content

Instantly share code, notes, and snippets.

@swgillespie
Last active December 22, 2015 12:18
Show Gist options
  • Save swgillespie/6471013 to your computer and use it in GitHub Desktop.
Save swgillespie/6471013 to your computer and use it in GitHub Desktop.
Sample ANT file
<project name="YourProjectName" default="build" basedir=".">
<description>
YOUR DESCRIPTION GOES HERE
</description>
<!-- Properties -->
<property name="src" location="src/"/>
<property name="bin" location="bin/"/>
<target name="init">
<mkdir dir="${bin}"/>
</target>
<target name="compile" depends="init">
<javac srcdir="${src}" destdir="${bin}" includeantruntime="true" debug="on"/>
</target>
<target name="build" depends="compile">
<jar jarfile="YOURPROJECT.jar" basedir="${bin}" manifest="MANIFEST.txt"/>
</target>
<target name="clean">
<delete dir="${bin}"/>
</target>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment