forked from behbas/AppDRESTAPI-SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AppD_build.xml
113 lines (100 loc) · 4.49 KB
/
AppD_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
<?xml version="1.0" encoding="UTF-8"?>
<project name="AppDRESTAPI" default="package" basedir=".">
<property name="classes.dir" value="src"/>
<property name="build.dir" value="appBuild"/>
<property name="lib.dir" value="${basedir}/lib"/>
<property name="execution.lib.dir" value="${basedir}/execLib"/>
<property name="restapi.main" value="org.appdynamics.appdrestapi.GetTimeStamps"/>
<property name="releases" value="${basedir}/releases"/>
<property name="RESTAPI.basename" value="AppDRESTAPI-SDK"/>
<property name="RESTAPI.version" value="2.4.7"/>
<property name="RESTAPI.basename.dev" value="RESTAPI_dev"/>
<property name="RESTAPI.version.dev" value="2.0.3"/>
<path id="compile.classpath">
<fileset dir="${lib.dir}/">
<include name="*.jar"/>
</fileset>
</path>
<path id="execute.classpath">
<fileset dir="${lib.dir}/">
<include name="*.jar"/>
</fileset>
<fileset dir="${build.dir}/">
<include name="*.jar"/>
</fileset>
</path>
<target name="clean">
<delete dir="${build.dir}"/>
<delete dir="${execution.lib.dir}"/>
</target>
<target name="init" depends="clean">
<mkdir dir="${build.dir}"/>
</target>
<target name="compile" depends="init">
<javac srcdir="${classes.dir}"
destdir="${build.dir}"
debug="on"
deprecation="on"
optimize="off"
includes="**"
target="1.7"
includeantruntime="false">
<classpath refid="compile.classpath"/>
</javac>
</target>
<target name="RESTAPI_jar" depends="compile">
<jar jarfile="${build.dir}/${RESTAPI.basename}_${RESTAPI.version}.jar">
<manifest>
<attribute name="Main-Class" value="${restapi.main}"/>
</manifest>
<fileset dir="${build.dir}">
<include name="org/appdynamics/appdrestapi/RESTAccess.class"/>
<include name="org/appdynamics/appdrestapi/RESTAccess2.class"/>
<include name="org/appdynamics/appdrestapi/GetTimeStamps.class"/>
<include name="org/appdynamics/appdrestapi/agent/*.class"/>
<include name="org/appdynamics/appdrestapi/conf/*.class"/>
<include name="org/appdynamics/appdrestapi/data/*.class"/>
<include name="org/appdynamics/appdrestapi/data/*.index"/>
<include name="org/appdynamics/appdrestapi/exportdata/*.class"/>
<include name="org/appdynamics/appdrestapi/exportdata/*.index"/>
<include name="org/appdynamics/appdrestapi/queries/*.class"/>
<include name="org/appdynamics/appdrestapi/resources/*.class"/>
<include name="org/appdynamics/appdrestapi/util/*.class"/>
</fileset>
</jar>
</target>
<target name="RESTAPI_jar_dev" depends="compile">
<jar jarfile="${build.dir}/${RESTAPI.basename.dev}_${RESTAPI.version.dev}.jar">
<manifest>
<attribute name="Main-Class" value="${restapi.main}"/>
</manifest>
<fileset dir="${build.dir}">
<include name="org/appdynamics/appdrestapi/RESTAccess.class"/>
<include name="org/appdynamics/appdrestapi/GetTimeStamps.class"/>
<include name="org/appdynamics/appdrestapi/agent/*.class"/>
<include name="org/appdynamics/appdrestapi/data/*.class"/>
<include name="org/appdynamics/appdrestapi/resources/*.class"/>
<include name="org/appdynamics/appdrestapi/util/*.class"/>
<include name="org/appdynamics/appdrestapi/exportdata/*.class"/>
</fileset>
</jar>
</target>
<target name="package" depends="RESTAPI_jar,RESTAPI_jar_dev">
<mkdir dir="${execution.lib.dir}"/>
<copy todir="${execution.lib.dir}/">
<fileset dir="${lib.dir}/">
<include name="*.jar"/>
</fileset>
<fileset dir="${build.dir}/">
<include name="${RESTAPI.basename}_${RESTAPI.version}.jar"/>
</fileset>
</copy>
<!-->
<zip destfile="${releases}/${RESTAPI.basename}_${RESTAPI.version}.zip" basedir="${execution.lib.dir}" />
<-->
<mkdir dir="${releases}"/>
<zip destfile="${releases}/${RESTAPI.basename}_${RESTAPI.version}.zip">
<zipfileset dir="${execution.lib.dir}" prefix="execLib" />
</zip>
</target>
</project>