forked from enebo/com4j
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-taskdefs.xml
More file actions
29 lines (28 loc) · 868 Bytes
/
build-taskdefs.xml
File metadata and controls
29 lines (28 loc) · 868 Bytes
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
<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.bat" dir="build">
<arg value="deploy:deploy-file"/>
<arg value="-Dfile=@{file}"/>
<arg value="-DpomFile=pom.xml"/>
<arg value="-Durl=java-net:/maven2-repository/trunk/www/repository/" />
<args />
</exec>
</sequential>
</macrodef>
</project>