Update build script to auto download dependencies.

This commit is contained in:
ElgarL committed 2013-01-27 00:53:26 +00:00
1 parent 635ba69e94
commit 94067ae14d
1 file changed
+12 -2
+12 -2
View File
@@ -11,12 +11,22 @@
<mkdir dir="${build}" /> <mkdir dir="${build}" />
</target> </target>
<target name="compile" depends="init"> <target name="download" depends="init">
<get src="http://palmergames.com/libs/bukkit.jar" dest="${env.LIB}/bukkit.jar" skipexisting="true" />
<get src="http://palmergames.com/libs/Towny.jar" dest="${env.LIB}/Towny.jar" skipexisting="true" />
<get src="http://palmergames.com/libs/Essentials.jar" dest="${env.LIB}/Essentials.jar" skipexisting="true" />
<get src="http://palmergames.com/libs/CraftIRC.jar" dest="${env.LIB}/CraftIRC.jar" skipexisting="true" />
<get src="http://palmergames.com/libs/dynmap-api.jar" dest="${env.LIB}/dynmap-api.jar" skipexisting="true" />
<get src="http://palmergames.com/libs/HeroicDeath.jar" dest="${env.LIB}/HeroicDeath.jar" skipexisting="true" />
</target>
<target name="compile" depends="download">
<!-- Compile the java code --> <!-- Compile the java code -->
<javac srcdir="src" destdir="${build}" includeantruntime="false" target="1.6" source="1.6" debug="true"> <javac srcdir="src" destdir="${build}" includeantruntime="false" target="1.6" source="1.6" debug="true">
<classpath> <classpath>
<pathelement location="${env.LIB}/bukkit.jar" /> <pathelement location="${env.LIB}/bukkit.jar" />
<pathelement location="${env.LIB}/craftbukkit.jar"/>
<pathelement location="${env.LIB}/Towny.jar" /> <pathelement location="${env.LIB}/Towny.jar" />
<pathelement location="${env.LIB}/Essentials.jar" /> <pathelement location="${env.LIB}/Essentials.jar" />
<pathelement location="${env.LIB}/CraftIRC.jar" /> <pathelement location="${env.LIB}/CraftIRC.jar" />