Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated build script to be more universally compatible. #26

Merged
merged 1 commit into from May 9, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
35 changes: 0 additions & 35 deletions .externalToolBuilders/Towny.launch

This file was deleted.

6 changes: 6 additions & 0 deletions build.properties
@@ -0,0 +1,6 @@
#===================================
# File Name: build.properties
#===================================

env.LIB=..//lib
evn.DIR=.//src
50 changes: 45 additions & 5 deletions build.xml
@@ -1,6 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="Towny" default="makejar" basedir=".">
<target name ="makejar" description="Create a jar for the Towny project">
<jar jarfile="../lib/Towny.jar" includes="**" basedir="bin"/>
</target>
</project>
<project name="Towny" default="jar" basedir=".">
<property name="build" value="target"/>
<property file="build.properties"/>

<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}/bpermissions.jar"/>
<pathelement location="${env.LIB}/Essentials.jar"/>
<pathelement location="${env.LIB}/EssentialsGroupManager.jar"/>
<pathelement location="${env.LIB}/Permissions.jar"/>
<pathelement location="${env.LIB}/PermissionsEx.jar"/>
<pathelement location="${env.LIB}/PermissionsBukkit.jar"/>
<pathelement location="${env.LIB}/Register.jar"/>
<pathelement location="${env.LIB}/iConomy.jar"/>
<pathelement location="${env.LIB}/Questioner.jar"/>
<pathelement location="${env.LIB}/Vault.jar"/>
<pathelement location="${env.LIB}/citizensapi-2.0-SNAPSHOT.jar"/>
</classpath>
</javac>
</target>

<target name="jar" depends="compile">
<!-- Build the jar file -->
<jar basedir="${build}" destfile="${env.LIB}/Towny.jar">
<fileset dir="./src" includes="ChangeLog.txt"/>
<fileset dir="./src" includes="english.yml"/>
<fileset dir="./src" includes="german.yml"/>
<fileset dir="./src" includes="plugin.yml"/>
<fileset dir="./src" includes="spanish.yml"/>
<fileset dir="./src" includes="ToDo.txt"/>
</jar>
</target>
</project>