2010-12-29 03:13:01 +01:00
|
|
|
<project name="dynmap" default="dist" basedir=".">
|
2011-01-05 19:41:21 +01:00
|
|
|
<include file="build_parameters.xml"/>
|
2011-01-03 23:15:58 +01:00
|
|
|
<property name="pluginname" value="dynmap"/>
|
2010-12-31 13:32:51 +01:00
|
|
|
|
2010-12-29 03:13:01 +01:00
|
|
|
<property name="src" location="src"/>
|
|
|
|
<property name="bin" location="bin"/>
|
|
|
|
<property name="dist" location="dist"/>
|
|
|
|
|
|
|
|
<target name="init">
|
|
|
|
<mkdir dir="${bin}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="compile" depends="init">
|
2011-01-07 04:50:43 +01:00
|
|
|
<javac srcdir="${src}/main/java" destdir="${bin}" classpath="${bukkit.jar}" debug="on" includeantruntime="false" />
|
2010-12-29 03:13:01 +01:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="dist" depends="compile">
|
|
|
|
<mkdir dir="${dist}"/>
|
2011-01-03 23:15:58 +01:00
|
|
|
<jar jarfile="${dist}/${pluginname}.jar">
|
|
|
|
<fileset dir="${bin}"/>
|
2011-01-05 19:41:21 +01:00
|
|
|
<fileset file="${src}/main/resources/plugin.yml"/>
|
2011-01-07 04:50:43 +01:00
|
|
|
<zipfileset dir="web" prefix="web/"/>
|
2011-01-13 11:18:54 +01:00
|
|
|
<zipfileset file="${src}/main/resources/colors.txt"/>
|
2011-01-03 23:15:58 +01:00
|
|
|
</jar>
|
2010-12-31 13:32:51 +01:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="deploy" depends="dist">
|
2011-01-03 23:15:58 +01:00
|
|
|
<copy file="${dist}/${pluginname}.jar" todir="${plugins}"/>
|
2011-01-05 19:41:21 +01:00
|
|
|
<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>
|
2010-12-29 03:13:01 +01:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="clean">
|
|
|
|
<delete dir="${bin}"/>
|
|
|
|
<delete dir="${dist}"/>
|
|
|
|
</target>
|
2011-01-03 23:15:58 +01:00
|
|
|
</project>
|