Further updates to the Ant build file, remove Eclipse specific stuff.

This commit is contained in:
2011-04-29 01:11:15 +01:00
parent 2a0c08ff8f
commit 96cf745134

View File

@@ -1,6 +1,6 @@
<project name="BukkitXMPP" default="dist" basedir="."> <project name="BukkitXMPP" default="dist" basedir=".">
<property name="pluginname" value="BukkitXMPP"/> <property name="pluginname" value="BukkitXMPP"/>
<property name="plugins" location="../../plugins/"/> <property name="plugins" location="../minecraft/plugins/"/>
<property name="src" location="src"/> <property name="src" location="src"/>
<property name="bin" location="bin"/> <property name="bin" location="bin"/>
@@ -8,9 +8,9 @@
<path id="bukkitxmpp.classpath"> <path id="bukkitxmpp.classpath">
<pathelement location="bin"/> <pathelement location="bin"/>
<pathelement location="../workspace/lib/craftbukkit-0.0.1-SNAPSHOT.jar"/> <pathelement location="../lib/craftbukkit-0.0.1-SNAPSHOT.jar"/>
<pathelement location="../workspace/lib/smack.jar"/> <pathelement location="../lib/smack.jar"/>
<pathelement location="../workspace/lib/smackx.jar"/> <pathelement location="../lib/smackx.jar"/>
</path> </path>
<target name="init"> <target name="init">
@@ -39,22 +39,7 @@
<delete dir="${bin}"/> <delete dir="${bin}"/>
<delete dir="${dist}"/> <delete dir="${dist}"/>
</target> </target>
<target depends="clean" name="cleanall"/>
<target description="copy Eclipse compiler jars to ant lib directory" name="init-eclipse-compiler">
<copy todir="${ant.library.dir}">
<fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
</copy>
<unzip dest="${ant.library.dir}">
<patternset includes="jdtCompilerAdapter.jar"/>
<fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
</unzip>
</target>
<target description="compile project with Eclipse compiler" name="build-eclipse-compiler">
<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
<antcall target="build"/>
</target>
<target name="Main"> <target name="Main">
<java classname="org.bukkit.craftbukkit.Main" failonerror="true" fork="yes"> <java classname="org.bukkit.craftbukkit.Main" failonerror="true" fork="yes">
<classpath refid="bukkitxmpp.classpath"/> <classpath refid="bukkitxmpp.classpath"/>