2012-02-24 05:11:06 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<project name="MobArena" default="dist" basedir=".">
|
|
|
|
<property name="pluginname" value="MobArena" />
|
|
|
|
|
2012-03-01 00:12:14 +01:00
|
|
|
<!-- Folders -->
|
|
|
|
<property name="src" location="src" />
|
|
|
|
<property name="bin" location="build" />
|
|
|
|
<property name="lib" location="lib" />
|
|
|
|
<property name="res" location="resources" />
|
2012-08-22 06:05:45 +02:00
|
|
|
<property name="server" location="D:\General\Java\Eclipse\Minecraft\Minecraft Server\plugins" />
|
2012-03-01 00:12:14 +01:00
|
|
|
|
|
|
|
<property name="ability-src" location="abilities" />
|
|
|
|
<property name="ability-dest" location="${res}/res/abilities" />
|
|
|
|
|
|
|
|
<!-- Dependency variables -->
|
2012-03-30 02:50:19 +02:00
|
|
|
<property name="cbver" value="1.2.4-R1.0" />
|
2012-03-01 00:12:14 +01:00
|
|
|
<property name="cbjar" value="craftbukkit-${cbver}.jar" />
|
|
|
|
<property name="cburl" value="http://repo.bukkit.org/content/repositories/releases/org/bukkit/craftbukkit/${cbver}/${cbjar}" />
|
|
|
|
|
2012-03-02 22:30:52 +01:00
|
|
|
<property name="vltver" value="1.2.12" />
|
2012-03-01 00:12:14 +01:00
|
|
|
<property name="vltjar" value="Vault-${vltver}-SNAPSHOT.jar" />
|
|
|
|
<property name="vlturl" value="http://ci.milkbowl.net/job/Vault/Recommended%20Build/artifact/target/${vltjar}" />
|
|
|
|
|
|
|
|
<property name="herojar" value="Heroes.jar" />
|
|
|
|
<property name="herourl" value="http://ci.milkbowl.net/job/Heroes/Heroic%20Build/artifact/build/${herojar}" />
|
|
|
|
|
|
|
|
<property name="sptjar" value="SpoutPluginAPI.jar" />
|
|
|
|
<property name="spturl" value="http://ci.spout.org/job/SpoutPluginAPI/Recommended/artifact/target/${sptjar}" />
|
|
|
|
|
|
|
|
<property name="msjar" value="MagicSpells.jar" />
|
2012-03-02 22:30:52 +01:00
|
|
|
<property name="msurl" value="http://dev.bukkit.org/media/files/577/281/${msjar}" />
|
2012-02-24 05:11:06 +01:00
|
|
|
|
2012-03-01 22:13:36 +01:00
|
|
|
|
2012-02-24 05:11:06 +01:00
|
|
|
<path id="classpath">
|
2012-03-01 00:12:14 +01:00
|
|
|
<fileset dir="${lib}" includes="*.jar" />
|
2012-02-24 05:11:06 +01:00
|
|
|
<pathelement location="${bin}" />
|
|
|
|
</path>
|
|
|
|
|
|
|
|
<target name="clean">
|
|
|
|
<delete dir="${bin}" />
|
|
|
|
</target>
|
|
|
|
|
2012-03-01 00:12:14 +01:00
|
|
|
<target name="prepare-bin">
|
2012-02-24 05:11:06 +01:00
|
|
|
<mkdir dir="${bin}" />
|
|
|
|
</target>
|
2012-03-01 00:12:14 +01:00
|
|
|
|
|
|
|
<target name="prepare-lib">
|
|
|
|
<mkdir dir="${lib}" />
|
|
|
|
</target>
|
|
|
|
|
2012-03-01 22:13:36 +01:00
|
|
|
<target name="prepare-abilities">
|
|
|
|
<mkdir dir="${ability-dest}" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!--<target name="copy-abilities">
|
2012-03-01 00:12:14 +01:00
|
|
|
<mkdir dir="${ability-dest}" />
|
|
|
|
<copy toDir="${ability-dest}">
|
|
|
|
<fileset dir="${ability-src}" />
|
|
|
|
</copy>
|
2012-03-01 22:13:36 +01:00
|
|
|
</target>-->
|
2012-03-01 00:12:14 +01:00
|
|
|
|
|
|
|
<target name="cleanup-abilities">
|
|
|
|
<delete dir="${ability-dest}" />
|
|
|
|
</target>
|
2012-03-01 22:13:36 +01:00
|
|
|
|
|
|
|
<!-- Builds the source code -->
|
2012-03-01 00:12:14 +01:00
|
|
|
<target name="build-src" depends="prepare-bin">
|
2012-02-24 05:11:06 +01:00
|
|
|
<javac target="1.6" source="1.6"
|
|
|
|
srcdir="${src}" destdir="${bin}"
|
|
|
|
debug="on" debuglevel="lines,vars,source"
|
2012-03-01 00:12:14 +01:00
|
|
|
includeantruntime="no">
|
|
|
|
<compilerarg value="-Xbootclasspath/p:${toString:classpath}"/>
|
|
|
|
</javac>
|
2012-02-24 05:11:06 +01:00
|
|
|
</target>
|
|
|
|
|
2012-03-01 22:13:36 +01:00
|
|
|
<!-- Builds the source code and shows deprecation issues -->
|
2012-03-01 00:12:14 +01:00
|
|
|
<target name="build-src-with-deprecation-check" depends="prepare-bin">
|
2012-02-24 05:11:06 +01:00
|
|
|
<javac target="1.6" source="1.6"
|
|
|
|
srcdir="${src}" destdir="${bin}"
|
|
|
|
debug="on" debuglevel="lines,vars,source"
|
2012-03-01 00:12:14 +01:00
|
|
|
includeantruntime="no">
|
2012-02-24 05:11:06 +01:00
|
|
|
<compilerarg value="-Xlint:deprecation"/>
|
2012-03-01 00:12:14 +01:00
|
|
|
<compilerarg value="-Xbootclasspath/p:${toString:classpath}"/>
|
2012-02-24 05:11:06 +01:00
|
|
|
</javac>
|
|
|
|
</target>
|
2012-03-01 22:13:36 +01:00
|
|
|
|
|
|
|
<!-- Builds the ability source code and places it in the resources folder -->
|
|
|
|
<target name="build-abilities" depends="prepare-abilities">
|
|
|
|
<javac target="1.6" source="1.6"
|
|
|
|
srcdir="${ability-src}" destdir="${ability-dest}"
|
|
|
|
debug="on" debuglevel="lines,vars,source"
|
|
|
|
includeantruntime="no">
|
|
|
|
<compilerarg value="-Xbootclasspath/p:${toString:classpath}"/>
|
|
|
|
</javac>
|
|
|
|
</target>
|
2012-02-24 05:11:06 +01:00
|
|
|
|
|
|
|
<!-- Build a .jar and copy to server's plugins-folder -->
|
2012-03-01 22:13:36 +01:00
|
|
|
<target name="dist" depends="build-src-with-deprecation-check, build-abilities">
|
2012-02-24 05:11:06 +01:00
|
|
|
<delete file="${pluginname}.jar" />
|
|
|
|
<jar jarfile="${pluginname}.jar">
|
|
|
|
<!-- Include the class-files (bin) and the resources (res) -->
|
|
|
|
<fileset dir="${bin}" />
|
|
|
|
<fileset dir="${res}" />
|
|
|
|
</jar>
|
2012-03-01 00:12:14 +01:00
|
|
|
<!-- Copy to server -->
|
2012-02-24 05:11:06 +01:00
|
|
|
<copy file="${pluginname}.jar" tofile="${server}/${pluginname}.jar" />
|
2012-03-01 00:12:14 +01:00
|
|
|
<delete dir="${ability-dest}" />
|
2012-02-24 05:11:06 +01:00
|
|
|
</target>
|
|
|
|
|
2012-03-01 00:12:14 +01:00
|
|
|
<!-- Download all dependency jars from the given URLs -->
|
|
|
|
<target name="download-dependencies" depends="prepare-lib">
|
|
|
|
<get src="${cburl}"
|
|
|
|
dest="${lib}/${cbjar}"
|
|
|
|
usetimestamp="true"
|
|
|
|
skipexisting="true" />
|
|
|
|
<get src="${vlturl}"
|
|
|
|
dest="${lib}/${vltjar}"
|
|
|
|
usetimestamp="true"
|
|
|
|
skipexisting="true" />
|
|
|
|
<get src="${herourl}"
|
|
|
|
dest="${lib}/${herojar}"
|
|
|
|
usetimestamp="true"
|
|
|
|
skipexisting="true" />
|
|
|
|
<get src="${spturl}"
|
|
|
|
dest="${lib}/${sptjar}"
|
|
|
|
usetimestamp="true"
|
|
|
|
skipexisting="true" />
|
|
|
|
<get src="${msurl}"
|
|
|
|
dest="${lib}/${msjar}"
|
|
|
|
usetimestamp="true"
|
|
|
|
skipexisting="true" />
|
|
|
|
</target>
|
2012-02-24 05:11:06 +01:00
|
|
|
</project>
|