mirror of
https://github.com/nikdoof/bukkitxmpp.git
synced 2025-12-14 10:02:16 +00:00
Switch to using Ant build files.
This commit is contained in:
8
build.sh
8
build.sh
@@ -1,8 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
rm -rf out; mkdir out;
|
||||
rm bukkitxmpp.jar
|
||||
|
||||
export CLASSPATH=$CLASSPATH:./libs/
|
||||
javac -cp ./lib/bukkit-0.0.1-SNAPSHOT.jar:./lib/smack.jar:./lib/smackx.jar -d ./out/ ./src/com/pleaseignore/BukkitXMPP/*.java
|
||||
jar -cvfm bukkitxmpp.jar MANIFEST.MF -C out/ . -C resources/ .
|
||||
63
build.xml
Normal file
63
build.xml
Normal file
@@ -0,0 +1,63 @@
|
||||
<project name="BukkitXMPP" default="dist" basedir=".">
|
||||
<property name="pluginname" value="BukkitXMPP"/>
|
||||
<property name="plugins" location="../../plugins/"/>
|
||||
|
||||
<property name="src" location="src"/>
|
||||
<property name="bin" location="bin"/>
|
||||
<property name="dist" location="dist"/>
|
||||
|
||||
<path id="bukkitxmpp.classpath">
|
||||
<pathelement location="bin"/>
|
||||
<pathelement location="../workspace/lib/craftbukkit-0.0.1-SNAPSHOT.jar"/>
|
||||
<pathelement location="../workspace/lib/smack.jar"/>
|
||||
<pathelement location="../workspace/lib/smackx.jar"/>
|
||||
</path>
|
||||
|
||||
<target name="init">
|
||||
<mkdir dir="${bin}"/>
|
||||
</target>
|
||||
|
||||
<target name="compile" depends="init">
|
||||
<javac srcdir="${src}" destdir="${bin}" includeantruntime="false">
|
||||
<classpath refid="bukkitxmpp.classpath"/>
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<target name="dist" depends="compile">
|
||||
<mkdir dir="${dist}"/>
|
||||
<jar jarfile="${dist}/${pluginname}.jar">
|
||||
<fileset dir="${bin}"/>
|
||||
<fileset file="resources/plugin.yml"/>
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
<target name="deploy" depends="dist">
|
||||
<copy file="${dist}/${pluginname}.jar" todir="${plugins}"/>
|
||||
</target>
|
||||
|
||||
<target name="clean">
|
||||
<delete dir="${bin}"/>
|
||||
<delete dir="${dist}"/>
|
||||
</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">
|
||||
<java classname="org.bukkit.craftbukkit.Main" failonerror="true" fork="yes">
|
||||
<classpath refid="bukkitxmpp.classpath"/>
|
||||
</java>
|
||||
</target>
|
||||
</project>
|
||||
@@ -1,2 +0,0 @@
|
||||
Smack 3.1 (http://www.igniterealtime.org/projects/smack/)
|
||||
Current CraftBukkit (http://ci.bukkit.org/job/dev-CraftBukkit/)
|
||||
Reference in New Issue
Block a user