-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.xml
More file actions
51 lines (44 loc) · 2.2 KB
/
build.xml
File metadata and controls
51 lines (44 loc) · 2.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="create_run_jar" name="Create Runnable Jar for Project ToopherJava">
<property name="src" location="src"/>
<property name="build" location="bin"/>
<property name="demo_jar" value="ToopherJavaDemo.jar"/>
<path id="build-classpath">
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
</path>
<target name="init">
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init">
<javac srcdir="${src}" destdir="${build}" classpathref="build-classpath" includeantruntime="false"/>
</target>
<target name="create_run_jar" depends="compile">
<jar jarfile="${demo_jar}" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="com.toopher.ToopherAPIDemo"/>
<attribute name="Class-Path" value="."/>
</manifest>
<fileset dir="bin"/>
<zipfileset excludes="META-INF/*.SF" src="lib/httpclient-4.2.1.jar"/>
<zipfileset excludes="META-INF/*.SF" src="lib/httpcore-4.2.2.jar"/>
<zipfileset excludes="META-INF/*.SF" src="lib/signpost-commonshttp4-1.2.1.2.jar"/>
<zipfileset excludes="META-INF/*.SF" src="lib/signpost-core-1.2.1.2.jar"/>
<zipfileset excludes="META-INF/*.SF" src="lib/commons-codec-1.6.jar"/>
<zipfileset excludes="META-INF/*.SF" src="lib/commons-logging-1.1.1.jar"/>
<zipfileset excludes="META-INF/*.SF" src="lib/fluent-hc-4.2.1.jar"/>
<zipfileset excludes="META-INF/*.SF" src="lib/httpclient-cache-4.2.1.jar"/>
<zipfileset excludes="META-INF/*.SF" src="lib/httpcore-4.2.1.jar"/>
<zipfileset excludes="META-INF/*.SF" src="lib/httpcore-ab-4.2.2.jar"/>
<zipfileset excludes="META-INF/*.SF" src="lib/httpcore-nio-4.2.2.jar"/>
<zipfileset excludes="META-INF/*.SF" src="lib/httpmime-4.2.1.jar"/>
<zipfileset excludes="META-INF/*.SF" src="lib/json.org.jar"/>
</jar>
</target>
<target name="clean">
<delete dir="${build}" />
</target>
<target name="test" depends="compile">
</target>
</project>