-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
129 lines (121 loc) · 4.43 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<project name="Javolution" default="no-args" basedir=".">
<description>
Javolution Backport - Java(TM) Solution for Real-Time and Embedded Systems.
</description>
<target name="_init">
<tstamp/>
<property name="library" value="javolution"/>
<property name="version" value="5.6.8"/>
<property name="release" value="5"/>
<property name="src" value="src"/>
<property name="bin" value="bin"/>
<property name="tmp" value="tmp"/>
<property name="api" value="api"/>
<property name="debug" value="false"/>
<property name="optimize" value="true"/>
<property name="includeAntRuntime" value="false"/>
<property name="encoding" value="UTF-8"/>
<mkdir dir="${tmp}"/>
</target>
<target name="clean" depends="_init">
<delete dir="${bin}"/>
<delete dir="${api}"/>
<delete dir="${tmp}"/>
<delete file="${library}-${version}.jar"/>
</target>
<target name="_init_1.5">
<property name="vm" value="J2SE 1.5+"/>
<property name="fork" value="true"/>
<property name="source" value="1.5"/>
<property name="target" value="1.5"/>
<property name="compiler" value="javac1.5"/>
<filter token="VERSION" value="${version}.${release} (${vm}) ${TODAY}"/>
<filter token="JVM-1.1+" value="*/"/>
<filter token="JVM-1.4+" value="*/"/>
<filter token="JVM-1.5+" value="*/"/>
<copy todir="${tmp}" filtering="true">
<fileset dir="${src}"/>
</copy>
</target>
<target name="_init_1.6">
<property name="vm" value="J2SE 1.6+"/>
<property name="fork" value="true"/>
<property name="source" value="1.6"/>
<property name="target" value="1.6"/>
<property name="compiler" value="javac1.6"/>
<filter token="VERSION" value="${version}.${release} (${vm}) ${TODAY}"/>
<filter token="JVM-1.1+" value="*/"/>
<filter token="JVM-1.4+" value="*/"/>
<filter token="JVM-1.5+" value="*/"/>
<filter token="JVM-1.6+" value="*/" />
<copy todir="${tmp}" filtering="true">
<fileset dir="${src}"/>
</copy>
</target>
<target name="_compile" depends="_init">
<mkdir dir="${bin}"/>
<!-- Compile everything in tmp directory -->
<javac srcdir="${tmp}"
destdir="${bin}"
classpath="${bin}"
encoding="${encoding}"
debug="${debug}"
optimize="${optimize}"
includeAntRuntime="${includeAntRuntime}"
fork="${fork}"
executable="${executable}"
source="${source}"
target="${target}"
compiler="${compiler}"/>
<!-- Copies resources if any -->
<copy todir="${bin}">
<fileset dir="${src}">
<include name="**/res-files/*"/>
</fileset>
</copy>
</target>
<target name="doc" depends="_init">
<mkdir dir="${api}"/>
<!-- Overwrite doc-files with original documents -->
<copy todir="${tmp}" overwrite="true">
<fileset dir="${src}">
<include name="**/doc-files/*"/>
</fileset>
</copy>
<javadoc sourcepath="${tmp}" destdir="${api}" windowtitle="Javolution Backport ${version} API" overview="src/overview.html" author="true" version="true" classpath="${bin}" charset="${encoding}" encoding="${encoding}" docencoding="${encoding}" stylesheetfile="css/javadoc.css" splitindex="true">
<header>
<![CDATA[<A HREF="http://javolution.org">
<SPAN CLASS="style0">J</SPAN>
<SPAN CLASS="style1">avolution Backport v${version} (${vm})</SPAN>
</A>]]>
</header>
<bottom>
<![CDATA[<i>Copyright © 2005 - 2007 Javolution.</i>]]>
</bottom>
<packageset dir="${tmp}" defaultexcludes="yes">
<include name="javolution/**/*"/>
<exclude name="**/doc-files/**"/>
<exclude name="**/res-files/**"/>
</packageset>
</javadoc>
<java classname="Colapi" classpath="colapi.jar">
<arg value="${basedir}/${api}"/>
</java>
</target>
<target name="jar" depends="_init">
<jar jarfile="${library}-${version}.jar" basedir="${bin}" update="false">
<manifest>
<attribute name="Main-Class" value="javolution.Javolution"/>
<attribute name="Specification-Title" value="Javolution"/>
<attribute name="Specification-Version" value="${version} (${vm})"/>
<attribute name="Specification-Vendor" value="Javolution"/>
<attribute name="Implementation-Title" value="Javolution"/>
<attribute name="Implementation-URL" value="http://javolution.org"/>
<attribute name="Implementation-Vendor" value="Javolution"/>
<attribute name="Implementation-Version" value="${version}.${release} ${TODAY}"/>
</manifest>
</jar>
</target>
<target name="compile-jdk5" depends="clean, _init_1.5, _compile, jar, doc"/>
<target name="compile-jdk6" depends="clean, _init_1.6, _compile, jar, doc"/>
</project>