[jboss-svn-commits] JBL Code SVN: r37858 - labs/jbosstm/branches/JBOSSTS_4_16.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Jan 23 06:34:15 EST 2012
Author: tomjenkinson
Date: 2012-01-23 06:34:15 -0500 (Mon, 23 Jan 2012)
New Revision: 37858
Modified:
labs/jbosstm/branches/JBOSSTS_4_16/build.xml
Log:
JBTM-1028 updated so as to be able to add a local snapshot release into the .m2 folder
Modified: labs/jbosstm/branches/JBOSSTS_4_16/build.xml
===================================================================
--- labs/jbosstm/branches/JBOSSTS_4_16/build.xml 2012-01-22 22:21:14 UTC (rev 37857)
+++ labs/jbosstm/branches/JBOSSTS_4_16/build.xml 2012-01-23 11:34:15 UTC (rev 37858)
@@ -98,6 +98,8 @@
<ant dir="docs" target="install.docs">
<property name="dest.dir" value="../install/docs"/>
</ant>
+
+ <antcall target="mvn-local-repository"/>
</target>
<target name="antbuildsystem" depends="clean">
@@ -154,6 +156,84 @@
<ant dir="maven"/>
</target>
+
+
+ <!-- copy the release artifacts to the maven repository -->
+ <target name="mvn-local-repository" description="copy the release artifacts to the local maven repository">
+
+ <!-- jta -->
+
+ <mvn-artifact.macro artifact="jbossjta" dir="ArjunaJTA/build/lib/"/>
+ <mvn-artifact.macro artifact="jbossjta-integration" dir="ArjunaJTA/build/lib/"/>
+
+ <!-- jts -->
+
+ <mvn-artifact.macro artifact="jbossjts" dir="ArjunaJTS/build/lib/"/>
+ <mvn-artifact.macro artifact="jbossjts-integration" dir="ArjunaJTS/build/lib/"/>
+
+ <!-- tools -->
+
+ <mvn-artifact.macro artifact="jbossts-tools" packaging="sar"
+ dir="install/bin"/>
+ <mvn-artifact.macro artifact="jbossts-jopr-plugin" packaging="jar"
+ dir="install/bin"/>
+
+ <!-- xts -->
+
+ <mvn-artifact.macro artifact="jbossxts" packaging="jar"
+ dir="install/xts/lib"/>
+ <mvn-artifact.macro artifact="jbossxts-api" packaging="jar"
+ dir="install/xts/lib"/>
+ <mvn-artifact.macro artifact="jbossxts-tests" packaging="zip"
+ dir="install/xts/tests"/>
+ <mvn-artifact.macro artifact="jbossxts-interop-tests" packaging="zip"
+ dir="install/xts/interop-tests"/>
+
+
+ <!-- txbridge -->
+
+ <mvn-artifact.macro artifact="jbosstxbridge" packaging="jar"
+ dir="install/txbridge"/>
+
+
+
+ </target>
+ <!-- macro to process a pom template into an actual pom and use it with mvn deploy-file to upload to the repo -->
+
+ <!-- http://community.jboss.org/wiki/MavenDeployingaRelease -->
+
+ <macrodef name="mvn-artifact.macro">
+
+ <attribute name="artifact"/>
+ <attribute name="dir"/>
+ <attribute name="packaging" default="jar"/>
+
+ <sequential>
+
+ <property name="groupid" value="org.jboss.jbossts"/>
+
+ <copy file="maven/pom-template.xml"
+ tofile="install/pom-@{artifact}.xml"
+ filtering="true" overwrite="true">
+ <filterset>
+ <filter token="groupid" value="${groupid}"/>
+ <filter token="artifact" value="@{artifact}"/>
+ <filter token="version" value="4.16.1-SNAPSHOT"/>
+ <filter token="packaging" value="@{packaging}"/>
+ </filterset>
+ </copy>
+
+ <exec executable="mvn" dir=".">
+ <arg value="install:install-file"/>
+ <arg value="-Dfile=@{dir}/@{artifact}.@{packaging}"/>
+ <arg value="-DpomFile=install/pom-@{artifact}.xml"/>
+ <arg value="-DuniqueVersion=false"/>
+ </exec>
+
+ </sequential>
+
+ </macrodef>
+
</project>
More information about the jboss-svn-commits
mailing list