mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-25 18:17:37 +01:00
52 lines
1.7 KiB
XML
52 lines
1.7 KiB
XML
<project name="dynmap" default="dist" basedir=".">
|
|
<property name="bukkit.jar" location="C:\Users\Bob\Desktop\minecraft_server\bukkit-0.0.1-SNAPSHOT.jar"/>
|
|
<property name="minecraft" location="C:\Users\Bob\Desktop\minecraft_server"/>
|
|
<property name="plugins" location="${minecraft}/plugins/"/>
|
|
<property name="http_root" location="/srv/http/dynmap/"/>
|
|
<property name="pluginname" value="dynmap"/>
|
|
|
|
<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">
|
|
<javac srcdir="${src}/main/java" destdir="${bin}" classpath="${bukkit.jar}" debug="on" includeantruntime="false" />
|
|
</target>
|
|
|
|
<target name="dist" depends="compile">
|
|
<mkdir dir="${dist}"/>
|
|
<jar jarfile="${dist}/${pluginname}.jar">
|
|
<fileset dir="${bin}"/>
|
|
<fileset file="${src}/main/resources/plugin.yml"/>
|
|
<zipfileset file="${src}/main/resources/colors.txt"/>
|
|
</jar>
|
|
</target>
|
|
|
|
<target name="deploy" depends="dist">
|
|
<copy file="${dist}/${pluginname}.jar" todir="${plugins}"/>
|
|
<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">
|
|
<delete dir="${bin}"/>
|
|
<delete dir="${dist}"/>
|
|
</target>
|
|
</project>
|