Skip to content

Instantly share code, notes, and snippets.

@tonetheman
Created October 22, 2011 14:23
Show Gist options
  • Save tonetheman/1306055 to your computer and use it in GitHub Desktop.
Save tonetheman/1306055 to your computer and use it in GitHub Desktop.
ant build file for MyBot.java that comes in the starter pack aichallenge
<project name="mybot" basedir=".">
<path id="cp">
<pathelement path="${basedir}" />
</path>
<echo>deleting old jar file...</echo>
<delete file="MyBot.jar" />
<echo>deleting class files...</echo>
<delete>
<fileset dir="${basedir}" includes="*.class" />
</delete>
<echo>compiling...</echo>
<javac
includeantruntime="false"
srcdir="."
destdir="."
classpathref="cp">
<include name="MyBot.java" />
</javac>
<echo>building jar</echo>
<jar
destfile="MyBot.jar"
basedir="."
includes="*.class">
</jar>
<echo>cleaning class files</echo>
<delete>
<fileset dir="${basedir}" includes="*.class" />
</delete>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment