-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathbuild.xml
44 lines (34 loc) · 1.79 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
<project name="jirareporter-custom-build" default="dist" basedir=".">
<property file="build.properties"/>
<property name="plugin.name" value="jirareporter"/>
<property name="javac2.home" value="${basedir}/lib-compile"/>
<import file="teamcity-common.xml"/>
<import file="jirareporter.xml"/>
<target name="package" depends="define.version">
<package.teamcity.plugin name="${plugin.name}"
common.output="${jirareporter-common.output.dir}"
server.output="${jirareporter-server.output.dir}"
agent.output="${jirareporter-agent.output.dir}"
server.lib.dir="lib" server.lib.includes="*.jar"
plugin.descriptor.file="${basedir}/teamcity-plugin.xml"
plugin.version="${plugin.version}"/>
</target>
<target name="define.version" depends="define.version.if.under.teamcity">
<tstamp>
<format property="current.time" pattern="yyyyMMddHHmm"/>
</tstamp>
<property name="plugin.version" value="0.2"/>
</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,build.modules,package"/>
<target name="clean" depends="jirareporter.clean"/>
<target name="deploy" depends="dist">
<deploy.teamcity.plugin name="${plugin.name}"/>
</target>
<target name="prepare.plugin.descriptor.file.artifacts" depends="define.version, prepare.plugin.descriptor.file.do"/>
<target name="deploy.artifact.plugin">
<deploy.teamcity.plugin name="${plugin.name}" teamcity.data.path="${path.variable.teamcitydistribution}" out="out/artifacts/final_plugin_package"/>
</target>
</project>