Started to create a build.xml to provide automatic versioning and some
neat ant stuff.
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<classpath>
|
<classpath>
|
||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
|
|
||||||
<classpathentry kind="lib" path="lib/Stats.jar"/>
|
<classpathentry kind="lib" path="lib/Stats.jar"/>
|
||||||
<classpathentry kind="lib" path="lib/bukkit-0.0.1-SNAPSHOT.jar">
|
<classpathentry kind="lib" path="lib/bukkit-0.0.1-SNAPSHOT.jar">
|
||||||
<attributes>
|
<attributes>
|
||||||
@@ -9,5 +8,6 @@
|
|||||||
</attributes>
|
</attributes>
|
||||||
</classpathentry>
|
</classpathentry>
|
||||||
<classpathentry kind="lib" path="lib/iConomy.jar"/>
|
<classpathentry kind="lib" path="lib/iConomy.jar"/>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||||
<classpathentry kind="output" path="bin"/>
|
<classpathentry kind="output" path="bin"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|||||||
56
build.xml
Normal file
56
build.xml
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<project name="XmlStats" basedir="." default="build">
|
||||||
|
<property name="build.classes" value="bin" />
|
||||||
|
<property name="build.lib" value="lib" />
|
||||||
|
<property name="java.dir" value="." />
|
||||||
|
<property name="name" value="XmlStats" />
|
||||||
|
<property name="manifest" value="MANIFEST.MF" />
|
||||||
|
<property name="craftbukkit.dir" value="C:/Users/socrates/AppData/Roaming/.craftbukkit" />
|
||||||
|
|
||||||
|
<path id="classpath">
|
||||||
|
<pathelement location="lib/" />
|
||||||
|
</path>
|
||||||
|
|
||||||
|
<!-- Anwendung bauen -->
|
||||||
|
<target name="build" depends="clean" description="Baut die komplette Anwendung">
|
||||||
|
<!-- Verzeichis anlegen -->
|
||||||
|
<mkdir dir="${build.classes}"/>
|
||||||
|
|
||||||
|
<!-- Quelltext kompilieren -->
|
||||||
|
<javac srcdir="${java.dir}"
|
||||||
|
destdir="${build.classes}"
|
||||||
|
debug="false"
|
||||||
|
deprecation="true"
|
||||||
|
optimize="true" >
|
||||||
|
<classpath refid="classpath" />
|
||||||
|
</javac>
|
||||||
|
|
||||||
|
<!-- Kopiert notwendige Dateien -->
|
||||||
|
<copy todir="${build.classes}">
|
||||||
|
<fileset dir="${java.dir}">
|
||||||
|
<include name="**/*.properties" />
|
||||||
|
<include name="**/*.gif" />
|
||||||
|
</fileset>
|
||||||
|
</copy>
|
||||||
|
|
||||||
|
<!-- Baut die JAR-Datei -->
|
||||||
|
<jar jarfile="${build.lib}/${name}.jar" manifest="${manifest}">
|
||||||
|
<fileset dir="${build.classes}"/>
|
||||||
|
</jar>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- Aufräumen -->
|
||||||
|
<target name="clean" description="Räumt die temporär angelegten Dateien weg">
|
||||||
|
<!-- Löscht Dateien -->
|
||||||
|
<delete dir="${build.dir}" />
|
||||||
|
<delete dir="${dist.base}" />
|
||||||
|
<delete dir="${defaultdist.dir}" />
|
||||||
|
<delete>
|
||||||
|
<fileset dir="." includes="**/*~" defaultexcludes="no"/>
|
||||||
|
</delete>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="copy" description="Copy ${name}.jar to craftbukkit plugin dir" depends="build">
|
||||||
|
<copy file="${build.lib}/${name}.jar" tofile="${craftbukkit.dir}/plugins/${name}.jar" />
|
||||||
|
</target>
|
||||||
|
</project>
|
||||||
@@ -16,7 +16,6 @@ package de.sockenklaus.XmlStats.XmlWorkers;
|
|||||||
|
|
||||||
import java.io.StringWriter;
|
import java.io.StringWriter;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|||||||
Reference in New Issue
Block a user