Replaced build and clean scripts with apache-ant build file.

This commit is contained in:
FrozenCow 2010-12-29 03:13:01 +01:00
parent 9cdc23051f
commit f84b9d4bde
5 changed files with 33 additions and 35 deletions

View File

@ -1,24 +0,0 @@
@ECHO OFF
CD E:\Projects\DynamicMap\branches\fescen9
CALL clean.bat
MKDIR plugins
MKDIR plugins\web
MKDIR plugins\web\tiles
MKDIR plugins\web\up
javac *.java -cp ..\..\..\Minecraft_Mod.jar;..\..\..\minecraft_server.jar
jar cvf plugins\map.jar *.class
COPY colors.txt .\plugins
COPY readme.txt .\plugins
COPY .\web\*.* .\plugins\web
COPY .\web\tiles\*.* .\plugins\web\tiles
COPY .\web\up\*.* .\plugins\web\up
CALL "C:\Program Files\WinRAR\Rar.exe" a -m5 -ed -r .\dist\DynamicMap_Fescen9.rar .\plugins\*.*
PAUSE

View File

@ -1,3 +0,0 @@
#!/bin/bash
rm -f *.class *.jar
javac *.java -cp ../hey0/bin/Minecraft_Mod.jar:../minecraft_server.jar && jar cvf map.jar *.class

33
build.xml Normal file
View File

@ -0,0 +1,33 @@
<project name="dynmap" default="dist" basedir=".">
<!-- Change the following two properties to the correct jar files -->
<property name="minecraftserver.jar" location="../../minecraft_server.jar"/>
<property name="hmod.jar" location="../../Minecraft_Mod.jar"/>
<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}" destdir="${bin}" includeantruntime="false">
<classpath>
<pathelement location="${hmod.jar}"/>
<pathelement location="${minecraftserver.jar}"/>
</classpath>
</javac>
</target>
<target name="dist" depends="compile">
<mkdir dir="${dist}"/>
<jar jarfile="${dist}/map.jar" basedir="${bin}"/>
<copy todir="${dist}" file="colors.txt"/>
</target>
<target name="clean">
<delete dir="${bin}"/>
<delete dir="${dist}"/>
</target>
</project>

View File

@ -1,6 +0,0 @@
@ECHO OFF
CD E:\Projects\DynamicMap\branches\fescen9
DEL /Q *.class
RMDIR /S /Q .\plugins

View File

@ -1,2 +0,0 @@
#!/bin/bash
rm -f *.class *.jar