forked from EngineHub/CraftBook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-circuits.xml
34 lines (29 loc) · 1.59 KB
/
build-circuits.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
34
<project name="CraftBookCircuits" basedir=".">
<target name="compile">
<javac srcdir="${src.dir}/circuits" deprecation="true"
includeantruntime="true" destdir="${build.dir}/circuits" debug="true">
<classpath>
<pathelement location="${build.dir}/common" />
<fileset refid="libs"/>
</classpath>
</javac>
</target>
<target name="jar" depends="compile">
<mkdir dir="${dist.dir}/circuits"/>
<!-- Make the manifest -->
<manifest file="${dist.dir}/circuits/manifest.mf" mode="replace">
<attribute name="Implementation-Title" value="CraftBook (circuits)"/>
<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}/circuits/plugin.yml"/>
<copy tofile="${build.dir}/circuits/plugin.yml" file="${src.dir}/circuits/resources/plugin.yml"/>
<replace file="${build.dir}/circuits/plugin.yml" token="__VERSION_MACRO__" value="${version}"/>
<mkdir dir="${build.dir}/circuits/defaults"/>
<copy tofile="${build.dir}/circuits/defaults/config.yml" file="${src.dir}/circuits/resources/config.yml"/>
<copy tofile="${build.dir}/circuits/defaults/custom-ics.txt" file="${src.dir}/circuits/resources/custom-ics.txt"/>
<jar jarfile="${dist.dir}/CraftBookCircuits.jar" basedir="${build.dir}/circuits" manifest="${dist.dir}/circuits/manifest.mf"/>
</target>
</project>