forked from kohsuke/com4j
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild-taskdefs.xml
43 lines (41 loc) · 1.25 KB
/
build-taskdefs.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
<project>
<!-- create deployment POM for preparation -->
<macrodef name="prepare-pom">
<sequential>
<tstamp/>
<delete file="build/pom.xml"/> <!-- force replacement -->
<copy file="pom-for-deploy.xml" tofile="build/pom.xml">
<filterset>
<filter token="VERSION" value="${DSTAMP}"/>
</filterset>
</copy>
</sequential>
</macrodef>
<!-- deploy to maven repository -->
<macrodef name="deploy">
<attribute name="file"/>
<element name="args" optional="true"/>
<sequential>
<exec executable="mvn" dir="build">
<arg value="deploy:deploy-file"/>
<arg value="-Dfile=@{file}"/>
<arg value="-DpomFile=pom.xml"/>
<arg value="-DrepositoryId=maven.jenkins-ci.org"/>
<arg value="-Durl=http://maven.jenkins-ci.org:8081/content/repositories/releases" />
<args />
</exec>
</sequential>
</macrodef>
<macrodef name="install">
<attribute name="file"/>
<element name="args" optional="true"/>
<sequential>
<exec executable="mvn" dir="build">
<arg value="install:install-file"/>
<arg value="-Dfile=@{file}"/>
<arg value="-DpomFile=pom.xml"/>
<args />
</exec>
</sequential>
</macrodef>
</project>