mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-04 14:38:58 +00:00
Added a more flexible, easier to use, build script
This commit is contained in:
1 parent
15451e6a19
commit
28991f3518
2 files changed
+42
-4
No files matched your search
@@ -0,0 +1,6 @@
|
|||||||
|
#===================================
|
||||||
|
# File Name: build.properties
|
||||||
|
#===================================
|
||||||
|
|
||||||
|
env.LIB=..//lib
|
||||||
|
evn.DIR=.//src
|
||||||
@@ -1,6 +1,38 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project name="TownyChat" default="makejar" basedir=".">
|
<project name="TownyChat" default="jar" basedir=".">
|
||||||
<target name ="makejar" description="Create a jar for the TownyChat project">
|
<property name="build" value="target"/>
|
||||||
<jar jarfile="../lib/TownyChat.jar" includes="**" basedir="bin"/>
|
<property file="build.properties"/>
|
||||||
</target>
|
|
||||||
|
<target name="clean">
|
||||||
|
<delete dir="${build}"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="init" depends="clean">
|
||||||
|
<mkdir dir="${build}"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="compile" depends="init">
|
||||||
|
<!-- Compile the java code -->
|
||||||
|
<javac srcdir="src" destdir="${build}">
|
||||||
|
<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>
|
||||||
</project>
|
</project>
|
||||||
Reference in new issue
Block a user