-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
34 lines (31 loc) · 1.36 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
32
33
34
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="create_run_jar" name="Create Runnable Jar for Project fatworm">
<!--this file was created by Eclipse Runnable JAR Export Wizard-->
<!--ANT 1.7 is required -->
<property name="src.dir" value="src"/>
<property name="lib.dir" value="lib"/>
<property name="bin.dir" value="bin"/>
<property name="dst.dir" value="dst"/>
<path id="classpath">
<fileset dir="${lib.dir}">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="compile">
<mkdir dir="${bin.dir}"/>
<javac srcdir="${src.dir}" destdir="${bin.dir}" nowarn="true">
<classpath refid="classpath"/>
</javac>
</target>
<target name="create_run_jar">
<jar destfile="/home/liuexp/Downloads/fatjudger/fatworm.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="fatworm.main.Main"/>
<attribute name="Class-Path" value="."/>
</manifest>
<fileset dir="/home/liuexp/projects/fatworm/bin"/>
<zipfileset excludes="META-INF/*.SF" src="/usr/share/java/antlr-3.5-complete.jar"/>
<zipfileset excludes="META-INF/*.SF" src="/home/liuexp/projects/fatworm/lib/commons-lang3-3.1.jar"/>
</jar>
</target>
</project>