-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
77 lines (68 loc) · 2.4 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<project name="DexStudio" basedir="." default="dexstudio-boundle.zip">
<!-- load the properties stored into the external file -->
<property file="build.properties" />
<target name="clean">
<delete dir="build" />
<delete dir="doc" />
</target>
<target name="compile-main" depends="clean">
<mkdir dir="build/main/classes" />
<javac srcdir="main/src" destdir="build/main/classes">
<include name="**/*.java" />
<classpath>
<pathelement location="./lib/*.jar" />
<fileset dir="lib">
<include name="**/*.jar" />
</fileset>
</classpath>
</javac>
</target>
<target name="dexstudio.jar" depends="compile-main">
<mkdir dir="build/jar" />
<jar destfile="build/jar/dexstudio-${dexstudio.version}.jar">
<manifest>
<attribute name="Implementation-Title" value="DexStudio" />
<attribute name="Implementation-Version" value="${dexstudio.version}" />
<attribute name="Implementation-Vendor" value="Eugenio Ancona, Matteo Zanoncello" />
<attribute name="Built-By" value="${user.name}" />
<attribute name="Main-Class" value="com.juliasoft.dexstudio.DexStudio"/>
<attribute name="Class-Path" value="lib/amalia-0.9.1.jar
lib/log4j-api-2.0-beta9.jar
lib/log4j-core-2.0-beta9.jar
lib/bcpkix-jdk15on-149.jar
lib/bcprov-jdk15on-149.jar
lib/commons-cli-1.2.jar
lib/commons-codec-1.9.jar
lib/commons-collections4-4.0.jar
lib/commons-io-2.4.jar"/>
</manifest>
<fileset dir="build/main/classes" includes="**/*.class" />
<fileset dir="." includes="imgs/" />
<file name="NOTICE" />
</jar>
</target>
<target name="dexstudio-doc.jar">
<mkdir dir="doc" />
<javadoc destdir="doc" sourcepath="main/src">
<classpath>
<pathelement location="lib/*.jar" />
<fileset dir="lib">
<include name="**/*.jar" />
</fileset>
</classpath>
</javadoc>
<jar destfile="build/jar/dexstudio-${dexstudio.version}-javadoc.jar" basedir="doc">
</jar>
</target>
<target name="dexstudio-boundle.zip" depends="clean,dexstudio.jar,dexstudio-doc.jar">
<zip destfile="build/dexstudio-${dexstudio.version}-boundle.zip">
<fileset dir="build/jar" excludes="amalia-${amalia.version}-sources.jar">
</fileset>
<zipfileset dir="">
<include name="lib/*.jar"/>
<include name="imgs/**/*.png"/>
<include name="logo/*" />
</zipfileset>
</zip>
</target>
</project>