forked from steeltomato/jmeter-amf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
95 lines (76 loc) · 3.34 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
<project name="JMeter-AMF" default="help" basedir=".">
<description>
JMeter AMF
</description>
<property file="build.properties" />
<property name="jmeter.home" value="/opt/jmeter-2.5" />
<property name="src.dir" value="src/protocol/amf" />
<property name="lib.dir" value="${jmeter.home}/lib" />
<property name="lib.api" value="${jmeter.home}/lib/api" />
<property name="lib.ext" value="${jmeter.home}/lib/ext" />
<property name="build.dir" value="build" />
<property name="build.amf" value="build/protocol/amf" />
<property name="dist.dir" value="dist" />
<property name="pack.dir" value="bin" />
<!-- Compilation Params -->
<property name="optimize" value="on" />
<property name="deprecation" value="off" />
<property name="target.java.version" value="1.5" />
<property name="src.java.version" value="1.5" />
<property name="encoding" value="UTF-8" />
<property name="includeAntRuntime" value="false" />
<property name="blazeds.version" value="4.0.0.14931" />
<property name="blazeds.core.jar" value="http://maven.springframework.org/external/com/adobe/blazeds/blazeds-core/${blazeds.version}/blazeds-core-${blazeds.version}.jar" />
<property name="blazeds.common.jar" value="http://maven.springframework.org/external/com/adobe/blazeds/blazeds-common/${blazeds.version}/blazeds-common-${blazeds.version}.jar" />
<path id="srcpath">
<pathelement location="${src.dir}" />
</path>
<path id="classpath">
<fileset dir="${lib.dir}" includes="*.jar" />
<fileset dir="${lib.ext}" includes="*.jar" />
</path>
<target name="init">
<tstamp />
<echo>JMeter-AMF</echo>
</target>
<target name="help">
</target>
<target name="clean" depends="init">
<delete dir="${build.dir}" />
<delete dir="${dist.dir}" />
<delete file="${pack.dir}/JMeter-AMF.jar" />
</target>
<target name="compile" depends="init" description="Compile JMeter-AMF classes">
<mkdir dir="${build.amf}"/>
<javac srcdir="${src.dir}" destdir="${build.amf}" optimize="${optimize}" source="${src.java.version}" debug="on" target="${target.java.version}"
includeAntRuntime="${includeAntRuntime}" deprecation="${deprecation}" encoding="${encoding}">
<include name="**/*.java" />
<classpath>
<path refid="classpath" />
</classpath>
</javac>
<copy todir="${build.amf}">
<fileset dir="${src.dir}" excludes="**/*.java" />
</copy>
</target>
<target name="package" depends="init, compile" description="JAR the plugin">
<jar jarfile="${pack.dir}/JMeter-AMF.jar"
basedir="${build.amf}">
</jar>
</target>
<target name="install" depends="init, clean, compile, package" description="Copy JMeter-AMF to the JMeter install directory">
<delete file="${lib.ext}/JMeter-AMF.jar" />
<copy file="${pack.dir}/JMeter-AMF.jar" tofile="${lib.ext}/JMeter-AMF.jar" />
</target>
<target name="dist" depends="init, clean, compile, package" description="Build a tarball for the current version">
<exec command="git describe --tags" outputproperty="release.version" />
<tar destfile="${dist.dir}/JMeter-AMF-${release.version}.tar.gz"
compression="gzip"
basedir="${basedir}"
includes="${pack.dir}/JMeter-AMF.jar,README,LICENSE" />
</target>
<target name="install-deps">
<get src="${blazeds.core.jar}" dest="${lib.ext}" skipexisting="true" />
<get src="${blazeds.common.jar}" dest="${lib.ext}" skipexisting="true" />
</target>
</project>