-
Notifications
You must be signed in to change notification settings - Fork 16
/
build.xml
42 lines (33 loc) · 1.54 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="jmeter-plugin" default="dist">
<property file="build.properties"/>
<property name="plugin.name" value="jmeter"/>
<property name="javac2.home" value="${basedir}/lib-compile"/>
<import file="teamcity-common.xml"/>
<import file="jmeter.xml"/>
<target name="package" depends="define.version">
<package.teamcity.plugin name="${plugin.name}"
common.output="${jmeter_common.output.dir}"
server.output="${jmeter_server.output.dir}"
agent.output="${jmeter_agent.output.dir}"
server.lib.dir="lib"
server.lib.includes="*.jar"
plugin.descriptor.file="${basedir}/teamcity-plugin.xml"
plugin.version="${plugin.version}">
</package.teamcity.plugin>
</target>
<target name="define.version" depends="define.version.if.under.teamcity">
<tstamp>
<format property="current.time" pattern="yyyyMMddHHmm"/>
</tstamp>
<property name="plugin.version" value="SNAPSHOT-${current.time}"/>
</target>
<target name="define.version.if.under.teamcity" if="build.number">
<property name="plugin.version" value="${build.number}"/>
</target>
<target name="dist" depends="check.teamcitydistribution, all, package"/>
<target name="clean" depends="jmeter.clean"/>
<!--<target name="deploy" depends="dist">-->
<!--<deploy.teamcity.plugin name="${plugin.name}"/>-->
<!--</target>-->
</project>