-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathAppD_build.xml
79 lines (69 loc) · 3.02 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="AppDLicenseCount" default="package" basedir=".">
<property name="classes.dir" value="src"/>
<property name="build.dir" value="appBuild"/>
<property name="lib.dir" value="${basedir}/lib"/>
<property name="exec.lib.dir" value="${basedir}/execLib"/>
<property name="poi.lib.dir" value="${basedir}/poiLibs"/>
<property name="license.main" value="org.appdynamics.customrp.license.CountLicenses"/>
<property name="crypto.tool" value="org.appdynamics.familysearch.util.CryptoTool"/>
<property name="AppDynamicsLC.basename" value="AppDynamicsLC"/>
<property name="AppDynamicsLC.version" value="1.0.5"/>
<loadproperties srcFile="one_time_git.properties"/>
<path id="compile.classpath">
<fileset dir="${exec.lib.dir}/">
<include name="*.jar"/>
</fileset>
</path>
<target name="clean">
<delete dir="${build.dir}"/>
<delete dir="${exec.lib.dir}"/>
</target>
<target name="init" depends="clean">
<mkdir dir="${build.dir}"/>
<mkdir dir="${exec.lib.dir}"/>
<copy todir="${exec.lib.dir}/">
<fileset dir="${appd_rest_base}/lib">
<include name="*.jar"/>
</fileset>
<fileset dir="${poi.lib.dir}/">
<include name="*.jar"/>
</fileset>
<fileset dir="${lib.dir}/">
<include name="*.jar"/>
</fileset>
</copy>
<copy file="${appd_rest_base}/appBuild/${appd_rest_jar}"
tofile="${exec.lib.dir}/${appd_rest_jar}"/>
</target>
<target name="compile" depends="init">
<javac srcdir="${classes.dir}"
destdir="${build.dir}"
debug="on"
deprecation="on"
optimize="off"
includes="**"
target="1.6"
includeantruntime="false">
<classpath refid="compile.classpath"/>
</javac>
</target>
<target name="Jar_it" depends="compile">
<jar jarfile="${build.dir}/${AppDynamicsLC.basename}_${AppDynamicsLC.version}.jar">
<manifest>
<attribute name="Main-Class" value="${license.main}"/>
</manifest>
<fileset dir="${build.dir}">
<include name="org/appdynamics/licensecount/CountLicenses.class"/>
<include name="org/appdynamics/licensecount/data/*.class"/>
<include name="org/appdynamics/licensecount/file/*.class"/>
<include name="org/appdynamics/licensecount/resources/*.class"/>
</fileset>
</jar>
</target>
<target name="package" depends="Jar_it">
<delete file="${exec.lib.dir}/${AppDynamicsLC.basename}*"/>
<copy file="${build.dir}/${AppDynamicsLC.basename}_${AppDynamicsLC.version}.jar"
tofile="${exec.lib.dir}/${AppDynamicsLC.basename}_${AppDynamicsLC.version}.jar"/>
</target>
</project>