mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-02 06:28:58 +00:00
Update build script to auto download dependencies.
This commit is contained in:
1 parent
635ba69e94
commit
94067ae14d
1 file changed
+44
-34
@@ -1,38 +1,48 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="TownyChat" default="jar" basedir=".">
|
||||
<property name="build" value="bin"/>
|
||||
<property file="build.properties"/>
|
||||
|
||||
<target name="clean">
|
||||
<delete dir="${build}"/>
|
||||
</target>
|
||||
<property name="build" value="bin" />
|
||||
<property file="build.properties" />
|
||||
|
||||
<target name="init" depends="clean">
|
||||
<mkdir dir="${build}"/>
|
||||
</target>
|
||||
|
||||
<target name="compile" depends="init">
|
||||
<!-- Compile the java code -->
|
||||
<javac srcdir="src" destdir="${build}" includeantruntime="false" target="1.6" source="1.6" debug="true">
|
||||
<classpath>
|
||||
<pathelement location="${env.LIB}/bukkit.jar"/>
|
||||
<pathelement location="${env.LIB}/craftbukkit.jar"/>
|
||||
<pathelement location="${env.LIB}/Towny.jar"/>
|
||||
<pathelement location="${env.LIB}/Essentials.jar"/>
|
||||
<pathelement location="${env.LIB}/CraftIRC.jar"/>
|
||||
<pathelement location="${env.LIB}/dynmap-api.jar"/>
|
||||
<pathelement location="${env.LIB}/HeroicDeath.jar"/>
|
||||
</classpath>
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<target name="jar" depends="compile">
|
||||
<!-- Build the jar file -->
|
||||
<jar basedir="${build}" destfile="${env.LIB}/TownyChat.jar">
|
||||
<fileset dir="./src" includes="changelog.txt"/>
|
||||
<fileset dir="./src" includes="Channels.yml"/>
|
||||
<fileset dir="./src" includes="ChatConfig.yml"/>
|
||||
<fileset dir="./src" includes="plugin.yml"/>
|
||||
</jar>
|
||||
</target>
|
||||
<target name="clean">
|
||||
<delete dir="${build}" />
|
||||
</target>
|
||||
|
||||
<target name="init" depends="clean">
|
||||
<mkdir dir="${build}" />
|
||||
</target>
|
||||
|
||||
<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 -->
|
||||
<javac srcdir="src" destdir="${build}" includeantruntime="false" target="1.6" source="1.6" debug="true">
|
||||
<classpath>
|
||||
<pathelement location="${env.LIB}/bukkit.jar" />
|
||||
<pathelement location="${env.LIB}/Towny.jar" />
|
||||
<pathelement location="${env.LIB}/Essentials.jar" />
|
||||
<pathelement location="${env.LIB}/CraftIRC.jar" />
|
||||
<pathelement location="${env.LIB}/dynmap-api.jar" />
|
||||
<pathelement location="${env.LIB}/HeroicDeath.jar" />
|
||||
</classpath>
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<target name="jar" depends="compile">
|
||||
<!-- Build the jar file -->
|
||||
<jar basedir="${build}" destfile="${env.LIB}/TownyChat.jar">
|
||||
<fileset dir="./src" includes="changelog.txt" />
|
||||
<fileset dir="./src" includes="Channels.yml" />
|
||||
<fileset dir="./src" includes="ChatConfig.yml" />
|
||||
<fileset dir="./src" includes="plugin.yml" />
|
||||
</jar>
|
||||
</target>
|
||||
</project>
|
||||
Reference in new issue
Block a user