-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
31 lines (31 loc) · 1.6 KB
/
build.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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="create_run_jar" name="Create Runnable Jar for Project BatteringValhalla" basedir=".">
<!--this file was created by Eclipse Runnable JAR Export Wizard-->
<!--ANT 1.7 is required -->
<target name="create_run_jar">
<mkdir dir="${basedir}/bin"/>
<copy todir="${basedir}/bin/it/batteringvalhalla/assets/">
<fileset dir="${basedir}/src/it/batteringvalhalla/assets/">
</fileset>
</copy>
<javac srcdir="${basedir}/src" destdir="${basedir}/bin" >
<classpath>
<pathelement path="${basedir}/src/it/batteringvalhalla/assets/libr/sqlite-jdbc-3.8.10.1.jar"/>
<pathelement path="${basedir}/src/it/batteringvalhalla/assets/libr/jaco-mp3-player-0.9.3.jar"/>
</classpath>
</javac>
<jar destfile="${basedir}/BatteringValhalla.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="it.batteringvalhalla.gamecore.GameManager"/>
<attribute name="Class-Path" value="."/>
</manifest>
<fileset dir="${basedir}/bin"/>
<zipfileset excludes="META-INF/*.SF" src="${basedir}/src/it/batteringvalhalla/assets/libr/sqlite-jdbc-3.8.10.1.jar"/>
<zipfileset excludes="META-INF/*.SF" src="${basedir}/src/it/batteringvalhalla/assets/libr/jaco-mp3-player-0.9.3.jar"/>
</jar>
</target>
<target name="clean">
<delete dir="${basedir}/bin"></delete>
<delete file="${basedir}/BatteringValhalla.jar"></delete>
</target>
</project>