Put classes in package to be more compatible with Bukkit.

This commit is contained in:
FrozenCow 2011-01-05 19:41:21 +01:00
parent 80f9435a1a
commit f0ec375834
12 changed files with 39 additions and 35 deletions

View file

@ -1,7 +1,6 @@
<project name="dynmap" default="dist" basedir=".">
<include file="build_parameters.xml"/>
<property name="pluginname" value="dynmap"/>
<property name="bukkit.jar" location="../../bukkit.jar"/>
<property name="plugins" location="../../plugins/"/>
<property name="src" location="src"/>
<property name="bin" location="bin"/>
@ -12,23 +11,34 @@
</target>
<target name="compile" depends="init">
<javac srcdir="${src}" destdir="${bin}" includeantruntime="false">
<classpath>
<pathelement location="${bukkit.jar}"/>
</classpath>
</javac>
<javac srcdir="${src}/main/java" destdir="${bin}" classpath="${bukkit.jar}" includeantruntime="false" />
</target>
<target name="dist" depends="compile">
<mkdir dir="${dist}"/>
<jar jarfile="${dist}/${pluginname}.jar">
<fileset dir="${bin}"/>
<fileset file="${src}/plugin.yml"/>
<fileset file="${src}/main/resources/plugin.yml"/>
</jar>
</target>
<target name="deploy" depends="dist">
<copy file="${dist}/${pluginname}.jar" todir="${plugins}"/>
<copy file="colors.txt" todir="${minecraft}"/>
<copy todir="${http_root}">
<fileset dir="web"/>
</copy>
</target>
<target name="release" depends="dist">
<delete file="${pluginname}.zip"/>
<zip destfile="${pluginname}.zip">
<zipfileset dir="." includes="README.md" fullpath="readme.txt"/>
<zipfileset dir="." includes="build.xml"/>
<zipfileset dir="${dist}" includes="*.jar"/>
<zipfileset dir="${src}" includes="*.java" prefix="src/"/>
<zipfileset dir="${web}" includes="**" prefix="web/"/>
</zip>
</target>
<target name="clean">