Replaced build and clean scripts with apache-ant build file.
This commit is contained in:
parent
9cdc23051f
commit
f84b9d4bde
5 changed files with 33 additions and 35 deletions
24
build.bat
24
build.bat
|
|
@ -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
|
|
||||||
3
build.sh
3
build.sh
|
|
@ -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
33
build.xml
Normal 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>
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
@ECHO OFF
|
|
||||||
|
|
||||||
CD E:\Projects\DynamicMap\branches\fescen9
|
|
||||||
|
|
||||||
DEL /Q *.class
|
|
||||||
RMDIR /S /Q .\plugins
|
|
||||||
2
clean.sh
2
clean.sh
|
|
@ -1,2 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
rm -f *.class *.jar
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue