forked from orybak/TeamCityRedmine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
38 lines (31 loc) · 1.02 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="redmineprovider" default="help">
<property file="build.properties"/>
<property environment="env"/>
<condition property="mvn" value="mvn.bat">
<os family="windows"/>
</condition>
<property name="mvn" value="mvn"/>
<property name="maven.executable" value="${env.M2_HOME}/bin/${mvn}" />
<target name="help">
<echo>Usage: </echo>
<echo>ant clean - cleans plugin build files</echo>
<echo>ant package - builds plugin using maven</echo>
<echo>ant deploy - deploys plugin over ssh</echo>
</target>
<target name="package">
<exec executable="${maven.executable}">
<arg value="package" />
</exec>
</target>
<target name="deploy" depends="package">
<scp localFile="target/redmine.zip"
todir="${deploy.user}@${deploy.host}:${deploy.dir}"
keyfile="${deploy.keyfile}"/>
</target>
<target name="clean">
<exec executable="${maven.executable}">
<arg value="clean" />
</exec>
</target>
</project>