-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
80 lines (68 loc) · 2.72 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
78
79
80
<?xml version="1.0" encoding="UTF-8"?>
<project name="SaveTVDownloadManager" basedir="." default="build">
<!-- Hook into One-Jar project -->
<available property="one-jar.dir" file="../one-jar/build.onejar.xml" value="../one-jar"/>
<!-- Will be ignored if available above -->
<property name="one-jar.dir" location="one-jar" />
<import file="${one-jar.dir}/build.onejar.xml"/>
<property name="eclipse.jar-in-jar.dir" value="build-lib/eclipse"/>
<property name="temp.dir" value="temp" />
<path id="libraries">
<fileset dir="lib" includes="*.jar"/>
</path>
<target name="mkdirs">
<mkdir dir="classes/src"/>
<mkdir dir="build"/>
</target>
<target name="build" depends="clean, mkdirs, compile, build.release, build.debug" />
<target name="clean">
<delete dir="classes" />
</target>
<target name="distclean" depends="clean" description="clean distribution">
<delete dir="build"/>
</target>
<target name="compile" depends="mkdirs">
<javac destdir="classes/src" includes="**/*.java" debug="true">
<src path="src" />
<classpath refid="libraries" />
<classpath refid="one-jar.libraries"/>
<classpath path="${one-jar.ant.jar}"/>
</javac>
</target>
<!-- Build the release version of SaveTV Download Manager -->
<target name="build.release">
<mkdir dir="build"/>
<copy file="propertiefiles/log4j.info.properties" tofile="classes/src/log4j.properties"/>
<one-jar destfile="build/release/SaveTVDownloadManager.jar">
<manifest>
<attribute name="Main-Class" value="com.ingo.savetv.Boot"/>
<attribute name="One-Jar-Main-Class" value="com.ingo.savetv.main.SaveTVDownloadManagerMain"/>
</manifest>
<main>
<fileset dir="classes/src"/>
</main>
<lib>
<fileset dir="lib" includes="*.jar" />
</lib>
</one-jar>
<delete dir="${temp.dir}" />
</target>
<!-- Build the debug version of SaveTV Download Manager -->
<target name="build.debug">
<mkdir dir="build"/>
<copy file="propertiefiles/log4j.debug.properties" tofile="classes/src/log4j.properties"/>
<one-jar destfile="build/debug/SaveTVDownloadManager.jar">
<manifest>
<attribute name="Main-Class" value="com.ingo.savetv.Boot"/>
<attribute name="One-Jar-Main-Class" value="com.ingo.savetv.main.SaveTVDownloadManagerMain"/>
</manifest>
<main>
<fileset dir="classes/src"/>
</main>
<lib>
<fileset dir="lib" includes="*.jar" />
</lib>
</one-jar>
<delete dir="${temp.dir}" />
</target>
</project>