Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #26 from dumptruckman/new-build-script

Updated build script to be more universally compatible.
  • Loading branch information...
commit 180a4a07100f19367dd0c2a1f9af15321e7d0284 2 parents 93bbf78 + afedb9e
@ElgarL authored
Showing with 51 additions and 40 deletions.
  1. +0 −35 .externalToolBuilders/Towny.launch
  2. +6 −0 build.properties
  3. +45 −5 build.xml
View
35 .externalToolBuilders/Towny.launch
@@ -1,35 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
-<booleanAttribute key="org.eclipse.ant.ui.ATTR_TARGETS_UPDATED" value="true"/>
-<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="false"/>
-<stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${project}"/>
-<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
-<listEntry value="/Towny"/>
-</listAttribute>
-<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
-<listEntry value="4"/>
-</listAttribute>
-<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false"/>
-<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
-<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; path=&quot;1&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
-<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry id=&quot;org.eclipse.ant.ui.classpathentry.antHome&quot;&gt;&#13;&#10;&lt;memento default=&quot;true&quot;/&gt;&#13;&#10;&lt;/runtimeClasspathEntry&gt;&#13;&#10;"/>
-<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry id=&quot;org.eclipse.ant.ui.classpathentry.extraClasspathEntries&quot;&gt;&#13;&#10;&lt;memento/&gt;&#13;&#10;&lt;/runtimeClasspathEntry&gt;&#13;&#10;"/>
-<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/Users/Steve/git/lib/craftbukkit.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
-<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/Users/Steve/git/lib/bukkit.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
-<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/Users/Steve/git/lib/bpermissions.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
-<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/Users/Steve/git/lib/Essentials.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
-<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/Users/Steve/git/lib/EssentialsGroupManager.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
-<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/Users/Steve/git/lib/Permissions.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
-<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/Users/Steve/git/lib/PermissionsEx.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
-<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/Users/Steve/git/lib/Register.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
-<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/Users/Steve/git/lib/iConomy.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
-<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/Users/Steve/git/lib/Questioner.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
-</listAttribute>
-<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>
-<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
-<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="Towny"/>
-<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/Towny/build.xml}"/>
-<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="full,incremental,"/>
-<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
-<stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" value="${workspace_loc:/Towny}"/>
-</launchConfiguration>
View
6 build.properties
@@ -0,0 +1,6 @@
+#===================================
+# File Name: build.properties
+#===================================
+
+env.LIB=..//lib
+evn.DIR=.//src
View
50 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>
Please sign in to comment.
Something went wrong with that request. Please try again.