Skip to content

Instantly share code, notes, and snippets.

@chrisa
Created January 27, 2011 16:23
Show Gist options
  • Select an option

  • Save chrisa/798726 to your computer and use it in GitHub Desktop.

Select an option

Save chrisa/798726 to your computer and use it in GitHub Desktop.
<?xml version="1.0"?>
<!-- ANT -->
<project name="Build Stuff" default="jar">
<path id="classpath">
<fileset dir="lib" includes="**/*.jar" />
</path>
<target name="compile-stuff">
<mkdir dir="build/classes"/>
<javac classpathref="classpath"
srcdir="."
destdir="build/classes"
includeantruntime="false"/>
</target>
<target name="jar" depends="compile-stuff">
<mkdir dir="build/jar" />
<jar destfile="build/jar/stuff.jar" basedir="build/classes" />
</target>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment