Created
October 22, 2011 14:23
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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