-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
34 lines (24 loc) · 1.2 KB
/
build.xml
File metadata and controls
34 lines (24 loc) · 1.2 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<project name="Soiler" default="default" basedir=".">
<description>Builds, tests, and runs the project Soiler.</description>
<import file="nbproject/build-impl.xml"/>
<target name="-post-jar">
<echo level="info" message="---- Finalizing Build" />
<!-- Rename unmapped (no libaries) .jar file -->
<copy file="${dist.jar}" tofile="${dist.dir}/${ant.project.name}-unmapped.jar" />
<delete file="${dist.dir}/${ant.project.name}.jar" />
<!-- Generate mapped (with libraries) .jar file -->
<jar compress="${jar.compress}" destfile="${dist.jar}">
<zipfileset src="${dist.dir}/${ant.project.name}-unmapped.jar" excludes="META-INF/*" />
<zipgroupfileset dir="${dist.dir}/lib/" includes="BukkitLib*" />
<manifest>
<attribute name="Main-Class" value="${main.class}" />
</manifest>
</jar>
<!-- Delete /dist/README.txt -->
<delete file="${dist.dir}/README.TXT" />
<!-- Delete /dist/lib folder -->
<delete dir="${dist.dir}/lib/" />
<echo level="info" message="---- Done" />
</target>
</project>