forked from EKibort/TeamCityFitnessePlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
38 lines (30 loc) · 1.55 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
<project name="TeamCityFitnesse-custom-build" default="dist" basedir=".">
<property file="build.properties"/>
<property name="plugin.name" value="Fitnesse"/>
<property name="javac2.home" value="${basedir}/lib-compile"/>
<import file="teamcity-common.xml"/>
<import file="teamcityfitnesse.xml"/>
<target name="package" depends="define.version">
<package.teamcity.plugin name="${plugin.name}"
common.output="${teamcityfitnesse-common.output.dir}"
server.output="${teamcityfitnesse-server.output.dir}"
agent.output="${teamcityfitnesse-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="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="teamcityfitnesse.clean"/>
<target name="deploy" depends="dist">
<deploy.teamcity.plugin name="${plugin.name}"/>
</target>
</project>