forked from Dynatrace/openkit-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
86 lines (71 loc) · 2.94 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="build_all" name="Create OpenKit Jar">
<property name="java6.boot.classpath" value="C:/workspaces/devtools/jdk1.6.0_45/jre/lib/rt.jar;C:/workspaces/devtools/jdk1.6.0_45/jre/lib/jsse.jar"/>
<property name="java7.boot.classpath" value="C:/workspaces/devtools/jdk1.7.0_80/jre/lib/rt.jar"/>
<property name="java7.boot.classpath" value="C:/workspaces/devtools/jdk1.8.0_77/jre/lib/rt.jar"/>
<property name="dir.buildfile" value="."/>
<property name="dir.source" value="${dir.buildfile}/src/main/java"/>
<property name="dir.classes" value="${dir.buildfile}/build/ant"/>
<property name="dir.workspace" value="${dir.buildfile}/.."/>
<property name="dir.jarfile" value="${dir.buildfile}/dist"/>
<property name="version" value="0.2"/>
<target name="build_all" depends="clean,compile_java6,create_jar6,compile_java7,create_jar7,compile_java8,create_jar8">
</target>
<target name="build_java6" depends="clean,compile_java6,create_jar6">
</target>
<target name="build_java7" depends="clean,compile_java7,create_jar7">
</target>
<target name="build_java8" depends="clean,compile_java8,create_jar8">
</target>
<target name="clean">
<delete dir="${dir.jarfile}" />
</target>
<target name="compile_java6">
<delete dir="${dir.classes}" />
<mkdir dir="${dir.classes}" />
<javac srcdir="${dir.source}" destdir="${dir.classes}" source="1.6" target="1.6" bootclasspath="${java6.boot.classpath}" includeantruntime="false">
<classpath>
<pathelement path="${dir.source}"/>
</classpath>
</javac>
</target>
<target name="compile_java7">
<delete dir="${dir.classes}" />
<mkdir dir="${dir.classes}" />
<javac srcdir="${dir.source}" destdir="${dir.classes}" source="1.7" target="1.7" bootclasspath="${java7.boot.classpath}" includeantruntime="false">
<classpath>
<pathelement path="${dir.source}"/>
</classpath>
</javac>
</target>
<target name="compile_java8">
<delete dir="${dir.classes}" />
<mkdir dir="${dir.classes}" />
<javac srcdir="${dir.source}" destdir="${dir.classes}" source="1.8" target="1.8" bootclasspath="${java8.boot.classpath}" includeantruntime="false">
<classpath>
<pathelement path="${dir.source}"/>
</classpath>
</javac>
</target>
<target name="create_jar6">
<mkdir dir="${dir.jarfile}" />
<jar destfile="${dir.jarfile}/openkit-${version}-java6.jar">
<fileset dir="${dir.classes}">
</fileset>
</jar>
</target>
<target name="create_jar7">
<mkdir dir="${dir.jarfile}" />
<jar destfile="${dir.jarfile}/openkit-${version}-java7.jar">
<fileset dir="${dir.classes}">
</fileset>
</jar>
</target>
<target name="create_jar8">
<mkdir dir="${dir.jarfile}" />
<jar destfile="${dir.jarfile}/openkit-${version}-java8.jar">
<fileset dir="${dir.classes}">
</fileset>
</jar>
</target>
</project>