forked from EngineHub/CraftBook
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build-vehicles.xml
33 lines (28 loc) · 1.5 KB
/
build-vehicles.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<project name="CraftBookVehicles" default="dist" basedir=".">
<target name="compile" depends="init">
<javac srcdir="${src.dir}/vehicles" deprecation="true"
includeantruntime="true" destdir="${build.dir}/vehicles" debug="true">
<classpath>
<pathelement location="${build.dir}/common" />
<fileset refid="libs"/>
</classpath>
</javac>
</target>
<target name="jar" depends="compile">
<mkdir dir="${dist.dir}/vehicles"/>
<!-- Make the manifest -->
<manifest file="${dist.dir}/vehicles/manifest.mf" mode="replace">
<attribute name="Implementation-Title" value="CraftBook (vehicles)"/>
<attribute name="Implementation-Version" value="${version}"/>
<attribute name="CraftBook-Version" value="${version}"/>
<attribute name="Class-Path" value="CraftBook.jar WorldEdit.jar ../WorldEdit.jar"/>
</manifest>
<!-- Make the plugin.yml file -->
<delete file="${build.dir}/vehicles/plugin.yml"/>
<copy tofile="${build.dir}/vehicles/plugin.yml" file="${src.dir}/vehicles/resources/plugin.yml"/>
<replace file="${build.dir}/vehicles/plugin.yml" token="__VERSION_MACRO__" value="${version}"/>
<mkdir dir="${build.dir}/vehicles/defaults"/>
<copy tofile="${build.dir}/vehicles/defaults/config.yml" file="${src.dir}/vehicles/resources/config.yml"/>
<jar jarfile="${dist.dir}/CraftBookVehicles.jar" basedir="${build.dir}/vehicles" manifest="${dist.dir}/vehicles/manifest.mf"/>
</target>
</project>