forked from sonyxperiadev/ChkBugReport
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreatejar.xml
More file actions
38 lines (33 loc) · 1.33 KB
/
createjar.xml
File metadata and controls
38 lines (33 loc) · 1.33 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="create_run_jar" name="Create Runnable Jar for Project ChkBugReport">
<!--this file was created by Eclipse Runnable JAR Export Wizard-->
<!--ANT 1.7 is required -->
<target name="create_run_jar">
<!-- First, clean the bin directory -->
<echo message="Cleanup up the bin dir..."/>
<mkdir dir="bin"/>
<delete includeemptydirs="true">
<fileset dir="bin" includes="**/*"/>
</delete>
<!-- Compile the source code -->
<echo message="Compiling code..."/>
<javac destdir="bin" debug="true" classpath="libs/ddmlib.jar">
<src path="src"/>
</javac>
<!-- Copy resources -->
<echo message="Copy resources..."/>
<copy todir="bin">
<fileset dir="res"/>
</copy>
<!-- Package the result -->
<echo message="Packing jar..."/>
<jar destfile="chkbugreport.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="com.sonyericsson.chkbugreport.Main"/>
<attribute name="Class-Path" value="."/>
</manifest>
<fileset dir="bin"/>
</jar>
<echo message="Done!"/>
</target>
</project>