[jboss-svn-commits] JBL Code SVN: r37359 - labs/jbosstm/trunk.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Aug 4 10:47:49 EDT 2011


Author: tomjenkinson
Date: 2011-08-04 10:47:49 -0400 (Thu, 04 Aug 2011)
New Revision: 37359

Modified:
   labs/jbosstm/trunk/build-release-pkgs.xml
Log:
stage the uploads first, hopefully this should increase performance

Modified: labs/jbosstm/trunk/build-release-pkgs.xml
===================================================================
--- labs/jbosstm/trunk/build-release-pkgs.xml	2011-08-04 14:22:54 UTC (rev 37358)
+++ labs/jbosstm/trunk/build-release-pkgs.xml	2011-08-04 14:47:49 UTC (rev 37359)
@@ -1,3 +1,4 @@
+<?xml version="1.0"?>
 <!--
   JBoss, Home of Professional Open Source
   Copyright 2009, Red Hat Middleware LLC, and individual contributors
@@ -56,261 +57,223 @@
       This version is for JBossTS 5.0.0 onwards. Don't use it for earlier releases, they are structured differently.
 -->
 <project name="JBossTS Release Packaging" default="fail" basedir=".">
-    <description>
+  <description>
         package JBossTS binary + src files for upload to website and other repos.
     </description>
-
-    <!-- you probably need to change these properties to suit your machine -->
-
-    <!-- uncomment the block of properties below to do a snapshot release.
+  <!-- you probably need to change these properties to suit your machine -->
+  <!-- uncomment the block of properties below to do a snapshot release.
             you need permissions to webdav upload to the server for this to work
             http://www.jboss.org/community/docs/DOC-11381  -->
-
-<!--
+  <!--
     <property name="svnbase" value="https://svn.jboss.org/repos/labs/labs/jbosstm"/>
     <property name="tag" value="trunk"/>
     <property name="version" value="5.0.0.M1-SNAPSHOT"/>
 -->
-
-    <!-- a working directory for the process. Can contain output from previous releases if you like to keep them archived locally. -->
-    <!--property name="workdir" location="/tmp/packaged_builds"/-->
-    <!-- where to get the source -->
-    <property name="svnbase" value="https://svn.jboss.org/repos/labs/labs/jbosstm"/>
-    <!-- The tag as it appears under svnbase -->
-    <property name="tag" value="trunk"/>
-    <!-- The file name base for the user downloadable files. Derive it from the tag -->
-    <property name="version" value="5.0.0.M1-SNAPSHOT"/>
-    <!-- the location the JBossTS web site content is copied to -->
-    <property name="downloads.dir" value="${user.home}/transactions/filemgmt.jboss.org/downloads_htdocs/jbosstm/"/>
-    <property name="docs.dir" value="${user.home}/transactions/filemgmt.jboss.org/docs_htdocs/jbosstm/"/>
-
-    <!-- you probably don't need to change anything below here -->
-
-    <taskdef resource="net/sf/antcontrib/antlib.xml">
-        <classpath>
-            <pathelement location="./antbuildsystem/ant-contrib-1.0b3.jar"/>
-        </classpath>
-    </taskdef>
-    
-    <target name="fail">
-      <fail message="you must specify a target"/>
-    </target>
-    
-    <target name="all" depends="dist,downloads"/>
-
-    <target name="dist-init" unless="dist-init">
-        <tstamp/>
-        
-        <fail message="You must set a workdir">
-          <condition>
-            <not>
-              <isset property="workdir"/>
-            </not>
-          </condition>
-        </fail>
-        
-        <fail message="You must not already have a local maven cached repository to do a release build">
-          <condition>
-            <available file="repository" type="dir"/>
-          </condition>
-        </fail>
-        
-        <fail message="You cannot perform a build without cleaning the old version out">
-          <condition>
-            <available file="${workdir}/${tag}" type="dir"/>
-          </condition>
-        </fail>
-        
-        <mkdir dir="${workdir}"/>
-
-         <!-- pull the source code from svn -->
-        <exec executable="svn" dir="${workdir}">
-            <arg value="checkout"/>
-            <arg value="${svnbase}/${tag}"/>
-        </exec>
-    </target>
-
-    <target name="dist" depends="dist-init" description="build the end-user release bundles (src and binary)">
-        <!-- build the binary releases -->
-        <exec dir="${workdir}/${tag}" executable="mvn" failonerror="true">
-            <arg line="clean -gs tools/maven/conf/settings.xml -Demma.jar.location=${user.dir}/ext/emma.jar -Dorson.jar.location=${user.dir}/ext/orson-0.5.0.jar"/>
-        </exec>
-
-        <!-- package the JTA only src tree (no JTS, XTS, txbridge, RTS) -->
-        <delete file="${workdir}/narayana-jta-${version}-src.zip"/>
-        <zip basedir="${workdir}" destfile="${workdir}/narayana-jta-${version}-src.zip"
-             includes="${tag}/**"
-             excludes="${tag}/ArjunaJTS/**, ${tag}/XTS/** ${tag}/txbridge/**, ${tag}/rest-tx/**, ${tag}/repository/**"/>
-        
-        <!-- package the full source release (all src tree) -->
-        <delete file="${workdir}/narayana-full-${version}-src.zip"/>
-        <zip basedir="${workdir}" destfile="${workdir}/narayana-full-${version}-src.zip"
-             includes="${tag}/**"
-             excludes="${tag}/repository/**"/>
-
-        <!-- build the binary releases -->
-        <exec dir="${workdir}/${tag}" executable="mvn" failonerror="true">
-            <arg line="deploy -DskipTests -gs tools/maven/conf/settings.xml -Demma.jar.location=${user.dir}/ext/emma.jar -Dorson.jar.location=${user.dir}/ext/orson-0.5.0.jar"/>
-        </exec>
-    </target>
-
-    <!-- copy the release into the downloads dir tree (http://www.jboss.org/jbosstm web site content) -->
-    <target name="downloads" description="copy release bundles to JBossTS web site content">
-        <fail>
-          <condition>
-            <not>
-              <available file="${downloads.dir}" type="dir"/>
-            </not>
-          </condition>
-        </fail>
-        <fail>
-          <condition>
-            <available file="${downloads.dir}/${version}" type="dir"/>
-          </condition>
-        </fail>
-        <fail>
-          <condition>
-            <not>
-              <available file="${docs.dir}" type="dir"/>
-            </not>
-          </condition>
-        </fail>
-        <fail>
-          <condition>
-            <available file="${docs.dir}/${version}" type="dir"/>
-          </condition>
-        </fail>
-        
-        <mkdir dir="${downloads.dir}/${version}"/>
-        <mkdir dir="${downloads.dir}/${version}/src"/>
-        <mkdir dir="${downloads.dir}/${version}/binary"/>
-        <mkdir dir="${downloads.dir}/${version}/idl"/>
-        <copy todir="${downloads.dir}/${version}/src">
-            <fileset dir="${workdir}" includes="narayana-*-${version}-src.zip"/>
-        </copy>
-        <copy todir="${downloads.dir}/${version}/binary">
-            <fileset dir="${workdir}/${tag}/dist/target/" includes="narayana-full-${version}-bin.zip"/>
-        </copy>        
-        <copy todir="${downloads.dir}/${version}/idl">
-            <fileset dir="${workdir}/${tag}/ArjunaJTS/jts/idl/arjuna">
-       				<include name="ArjunaOTS.idl"/>
-        	 </fileset>
-        </copy>
-        <copy todir="${downloads.dir}/${version}/idl">
-            <fileset dir="${workdir}/${tag}/ArjunaJTS/jts/idl/omg">
-       				<include name="CosTransactions.idl"/>
-			        <include name="XA.idl"/>
-        	 </fileset>
-        </copy>
-        <copy file="${workdir}/${tag}/rhq-plugin/target/jbossts-jopr-plugin-5.0.0.M1-SNAPSHOT-javadoc.jar" todir="${downloads.dir}/${version}/api/admin"/>
-        <copy file="${workdir}/${tag}/ArjunaJTS/narayana-jts/target/narayana-jts-5.0.0.M1-SNAPSHOT-javadoc.jar" todir="${downloads.dir}/${version}/api/JTA"/>
-        <copy file="${workdir}/${tag}/ArjunaJTA/narayana-jta/target/narayana-jta-5.0.0.M1-SNAPSHOT-javadoc.jar" todir="${downloads.dir}/${version}/api/JTS"/>
-        <copy file="${workdir}/${tag}/XTS/jbossxts/target/jbossxts-5.0.0.M1-SNAPSHOT-javadoc.jar" todir="${downloads.dir}/${version}/api/XTS"/>
-        
-        <mkdir dir="${docs.dir}/${version}"/>
-        <copy todir="${docs.dir}/${version}/guides/narayana-jts-orbportability">
-            <fileset dir="${workdir}/${tag}/ArjunaJTS/docs/orbportability/target/docbook/publish/en-US/html"/>
-        </copy>
-        <copy todir="${docs.dir}/${version}/guides/narayana-jts-quick_start">
-            <fileset dir="${workdir}/${tag}/ArjunaJTS/docs/quick_start/target/docbook/publish/en-US/html"/>
-        </copy>
-        <copy todir="${docs.dir}/${version}/guides/narayana-jts-administration_guide">
-            <fileset dir="${workdir}/${tag}/ArjunaJTS/docs/administration_guide/target/docbook/publish/en-US/html"/>
-        </copy>
-        <copy todir="${docs.dir}/${version}/guides/narayana-jts-development_guide">
-            <fileset dir="${workdir}/${tag}/ArjunaJTS/docs/development_guide/target/docbook/publish/en-US/html"/>
-        </copy>
-        <copy todir="${docs.dir}/${version}/guides/arjunacore-failure_recovery_guide">
-            <fileset dir="${workdir}/${tag}/ArjunaCore/docs/failure_recovery_guide/target/docbook/publish/en-US/html"/>
-        </copy>
-        <copy todir="${docs.dir}/${version}/guides/arjunacore-development_guide">
-            <fileset dir="${workdir}/${tag}/ArjunaCore/docs/development_guide/target/docbook/publish/en-US/html"/>
-        </copy>
-        <copy todir="${docs.dir}/${version}/guides/narayana-jta-quick_start">
-            <fileset dir="${workdir}/${tag}/ArjunaJTA/docs/quick_start/target/docbook/publish/en-US/html"/>
-        </copy>
-        <copy todir="${docs.dir}/${version}/guides/narayana-jta-installation_guide">
-            <fileset dir="${workdir}/${tag}/ArjunaJTA/docs/installation_guide/target/docbook/publish/en-US/html"/>
-        </copy>
-        <copy todir="${docs.dir}/${version}/guides/narayana-jta-administration_guide">
-            <fileset dir="${workdir}/${tag}/ArjunaJTA/docs/administration_guide/target/docbook/publish/en-US/html"/>
-        </copy>
-        <copy todir="${docs.dir}/${version}/guides/narayana-jta-development_guide">
-            <fileset dir="${workdir}/${tag}/ArjunaJTA/docs/development_guide/target/docbook/publish/en-US/html"/>
-        </copy>
-        <copy todir="${docs.dir}/${version}/guides/xts-development_guide">
-            <fileset dir="${workdir}/${tag}/XTS/docs/Transactions_XTS_Administration_And_Development_Guide/target/docbook/publish/en-US/html"/>
-        </copy>
-        <copy todir="${docs.dir}/${version}/guides/failure_recovery_guide">
-            <fileset dir="${workdir}/${tag}/docs/failure_recovery_guide/target/docbook/publish/en-US/html"/>
-        </copy>
-        <copy todir="${docs.dir}/${version}/guides/release_notes">
-            <fileset dir="${workdir}/${tag}/docs/release_notes/target/docbook/publish/en-US/html"/>
-        </copy>
-        <copy todir="${docs.dir}/${version}/guides/development_guide">
-            <fileset dir="${workdir}/${tag}/docs/development_guide/target/docbook/publish/en-US/html"/>
-        </copy>
-        <copy todir="${docs.dir}/${version}/guides/transactions_overview_guide">
-            <fileset dir="${workdir}/${tag}/docs/transactions_overview_guide/target/docbook/publish/en-US/html"/>
-        </copy>
-        <copy todir="${docs.dir}/${version}/guides/txbridge_guide">
-            <fileset dir="${workdir}/${tag}/docs/txbridge_guide/target/docbook/publish/en-US/html"/>
-        </copy>
-        <unzip src="${workdir}/${tag}/rhq-plugin/target/jbossts-jopr-plugin-5.0.0.M1-SNAPSHOT-javadoc.jar" dest="${docs.dir}/${version}/api/admin"/>
-        <unzip src="${workdir}/${tag}/ArjunaJTS/narayana-jts/target/narayana-jts-5.0.0.M1-SNAPSHOT-javadoc.jar" dest="${docs.dir}/${version}/api/JTA"/>
-        <unzip src="${workdir}/${tag}/ArjunaJTA/narayana-jta/target/narayana-jta-5.0.0.M1-SNAPSHOT-javadoc.jar" dest="${docs.dir}/${version}/api/JTS"/>
-        <unzip src="${workdir}/${tag}/XTS/jbossxts/target/jbossxts-5.0.0.M1-SNAPSHOT-javadoc.jar" dest="${docs.dir}/${version}/api/XTS"/>
-    </target>
-
-    <!-- copy the release artifacts to the maven repository -->
-    <target name="mvn-repository" description="copy the release artifacts to the maven repository">
-
-
-        <!-- xts -->
-
-        <mvn-artifact.macro artifact="jbossxts-tests" packaging="zip"
-                            dir="${workdir}/build/${tag}/xts/tests"/>
-        <mvn-artifact.macro artifact="jbossxts-interop-tests" packaging="zip"
-                            dir="${workdir}/build/${tag}/xts/interop-tests"/>
-
-
-
-
-
-    </target>
-
-
-    <!-- magnolia (the cms that sits behind jboss.org/jbosstm pages) is a pain. This target generates
+  <!-- a working directory for the process. Can contain output from previous releases if you like to keep them archived locally. -->
+  <!--property name="workdir" location="/tmp/packaged_builds"/-->
+  <!-- where to get the source -->
+  <property name="svnbase" value="https://svn.jboss.org/repos/labs/labs/jbosstm"/>
+  <!-- The tag as it appears under svnbase -->
+  <property name="tag" value="trunk"/>
+  <!-- The file name base for the user downloadable files. Derive it from the tag -->
+  <property name="version" value="5.0.0.M1-SNAPSHOT"/>
+  <!-- the location the JBossTS web site content is copied to -->
+  <property name="downloads.dir" value="${user.home}/transactions/filemgmt.jboss.org/downloads_htdocs/jbosstm/"/>
+  <property name="docs.dir" value="${user.home}/transactions/filemgmt.jboss.org/docs_htdocs/jbosstm/"/>
+  <!-- you probably don't need to change anything below here -->
+  <taskdef resource="net/sf/antcontrib/antlib.xml">
+    <classpath>
+      <pathelement location="./antbuildsystem/ant-contrib-1.0b3.jar"/>
+    </classpath>
+  </taskdef>
+  <target name="fail">
+    <fail message="you must specify a target"/>
+  </target>
+  <target name="all" depends="dist,downloads"/>
+  <target name="dist-init" unless="dist-init">
+    <tstamp/>
+    <fail message="You must set a workdir">
+      <condition>
+        <not>
+          <isset property="workdir"/>
+        </not>
+      </condition>
+    </fail>
+    <fail message="You must not already have a local maven cached repository to do a release build">
+      <condition>
+        <available file="repository" type="dir"/>
+      </condition>
+    </fail>
+    <fail message="You cannot perform a build without cleaning the old version out">
+      <condition>
+        <available file="${workdir}/${tag}" type="dir"/>
+      </condition>
+    </fail>
+    <mkdir dir="${workdir}"/>
+    <!-- pull the source code from svn -->
+    <exec executable="svn" dir="${workdir}">
+      <arg value="checkout"/>
+      <arg value="${svnbase}/${tag}"/>
+    </exec>
+  </target>
+  <target name="dist" depends="dist-init" description="build the end-user release bundles (src and binary)">
+    <!-- build the binary releases -->
+    <exec dir="${workdir}/${tag}" executable="mvn" failonerror="true">
+      <arg line="clean -gs tools/maven/conf/settings.xml -Demma.jar.location=${user.dir}/ext/emma.jar -Dorson.jar.location=${user.dir}/ext/orson-0.5.0.jar"/>
+    </exec>
+    <!-- package the JTA only src tree (no JTS, XTS, txbridge, RTS) -->
+    <delete file="${workdir}/narayana-jta-${version}-src.zip"/>
+    <zip basedir="${workdir}" destfile="${workdir}/narayana-jta-${version}-src.zip" includes="${tag}/**" excludes="${tag}/ArjunaJTS/**, ${tag}/XTS/** ${tag}/txbridge/**, ${tag}/rest-tx/**, ${tag}/repository/**"/>
+    <!-- package the full source release (all src tree) -->
+    <delete file="${workdir}/narayana-full-${version}-src.zip"/>
+    <zip basedir="${workdir}" destfile="${workdir}/narayana-full-${version}-src.zip" includes="${tag}/**" excludes="${tag}/repository/**"/>
+    <!-- build the binary releases -->
+    <exec dir="${workdir}/${tag}" executable="mvn" failonerror="true">
+      <arg line="deploy -DskipTests -gs tools/maven/conf/settings.xml -Demma.jar.location=${user.dir}/ext/emma.jar -Dorson.jar.location=${user.dir}/ext/orson-0.5.0.jar"/>
+    </exec>
+  </target>
+  <!-- copy the release into the downloads dir tree (http://www.jboss.org/jbosstm web site content) -->
+  <target name="downloads" description="copy release bundles to JBossTS web site content">
+    <fail>
+      <condition>
+        <not>
+          <available file="${downloads.dir}" type="dir"/>
+        </not>
+      </condition>
+    </fail>
+    <fail>
+      <condition>
+        <available file="${downloads.dir}/${version}" type="dir"/>
+      </condition>
+    </fail>
+    <fail>
+      <condition>
+        <not>
+          <available file="${docs.dir}" type="dir"/>
+        </not>
+      </condition>
+    </fail>
+    <fail>
+      <condition>
+        <available file="${docs.dir}/${version}" type="dir"/>
+      </condition>
+    </fail>
+    <delete dir="tmp-downloads-dir"/>
+    <mkdir dir="tmp-downloads-dir"/>
+    <mkdir dir="tmp-downloads-dir/src"/>
+    <mkdir dir="tmp-downloads-dir/binary"/>
+    <mkdir dir="tmp-downloads-dir/idl"/>
+    <delete dir="tmp-docs-dir"/>
+    <mkdir dir="tmp-docs-dir"/>
+    <copy todir="tmp-downloads-dir/src">
+      <fileset dir="${workdir}" includes="narayana-*-${version}-src.zip"/>
+    </copy>
+    <copy todir="tmp-downloads-dir/binary">
+      <fileset dir="${workdir}/${tag}/dist/target/" includes="narayana-full-${version}-bin.zip"/>
+    </copy>
+    <copy todir="tmp-downloads-dir/idl">
+      <fileset dir="${workdir}/${tag}/ArjunaJTS/jts/idl/arjuna">
+        <include name="ArjunaOTS.idl"/>
+      </fileset>
+    </copy>
+    <copy todir="tmp-downloads-dir/idl">
+      <fileset dir="${workdir}/${tag}/ArjunaJTS/jts/idl/omg">
+        <include name="CosTransactions.idl"/>
+        <include name="XA.idl"/>
+      </fileset>
+    </copy>
+    <copy file="${workdir}/${tag}/rhq-plugin/target/jbossts-jopr-plugin-5.0.0.M1-SNAPSHOT-javadoc.jar" todir="tmp-downloads-dir/api/admin"/>
+    <copy file="${workdir}/${tag}/ArjunaJTS/narayana-jts/target/narayana-jts-5.0.0.M1-SNAPSHOT-javadoc.jar" todir="tmp-downloads-dir/api/JTA"/>
+    <copy file="${workdir}/${tag}/ArjunaJTA/narayana-jta/target/narayana-jta-5.0.0.M1-SNAPSHOT-javadoc.jar" todir="tmp-downloads-dir/api/JTS"/>
+    <copy file="${workdir}/${tag}/XTS/jbossxts/target/jbossxts-5.0.0.M1-SNAPSHOT-javadoc.jar" todir="tmp-downloads-dir/api/XTS"/>
+    <copy todir="tmp-docs-dir/guides/narayana-jts-orbportability">
+      <fileset dir="${workdir}/${tag}/ArjunaJTS/docs/orbportability/target/docbook/publish/en-US/html"/>
+    </copy>
+    <copy todir="tmp-docs-dir/guides/narayana-jts-quick_start">
+      <fileset dir="${workdir}/${tag}/ArjunaJTS/docs/quick_start/target/docbook/publish/en-US/html"/>
+    </copy>
+    <copy todir="tmp-docs-dir/guides/narayana-jts-administration_guide">
+      <fileset dir="${workdir}/${tag}/ArjunaJTS/docs/administration_guide/target/docbook/publish/en-US/html"/>
+    </copy>
+    <copy todir="tmp-docs-dir/guides/narayana-jts-development_guide">
+      <fileset dir="${workdir}/${tag}/ArjunaJTS/docs/development_guide/target/docbook/publish/en-US/html"/>
+    </copy>
+    <copy todir="tmp-docs-dir/guides/arjunacore-failure_recovery_guide">
+      <fileset dir="${workdir}/${tag}/ArjunaCore/docs/failure_recovery_guide/target/docbook/publish/en-US/html"/>
+    </copy>
+    <copy todir="tmp-docs-dir/guides/arjunacore-development_guide">
+      <fileset dir="${workdir}/${tag}/ArjunaCore/docs/development_guide/target/docbook/publish/en-US/html"/>
+    </copy>
+    <copy todir="tmp-docs-dir/guides/narayana-jta-quick_start">
+      <fileset dir="${workdir}/${tag}/ArjunaJTA/docs/quick_start/target/docbook/publish/en-US/html"/>
+    </copy>
+    <copy todir="tmp-docs-dir/guides/narayana-jta-installation_guide">
+      <fileset dir="${workdir}/${tag}/ArjunaJTA/docs/installation_guide/target/docbook/publish/en-US/html"/>
+    </copy>
+    <copy todir="tmp-docs-dir/guides/narayana-jta-administration_guide">
+      <fileset dir="${workdir}/${tag}/ArjunaJTA/docs/administration_guide/target/docbook/publish/en-US/html"/>
+    </copy>
+    <copy todir="tmp-docs-dir/guides/narayana-jta-development_guide">
+      <fileset dir="${workdir}/${tag}/ArjunaJTA/docs/development_guide/target/docbook/publish/en-US/html"/>
+    </copy>
+    <copy todir="tmp-docs-dir/guides/xts-development_guide">
+      <fileset dir="${workdir}/${tag}/XTS/docs/Transactions_XTS_Administration_And_Development_Guide/target/docbook/publish/en-US/html"/>
+    </copy>
+    <copy todir="tmp-docs-dir/guides/failure_recovery_guide">
+      <fileset dir="${workdir}/${tag}/docs/failure_recovery_guide/target/docbook/publish/en-US/html"/>
+    </copy>
+    <copy todir="tmp-docs-dir/guides/release_notes">
+      <fileset dir="${workdir}/${tag}/docs/release_notes/target/docbook/publish/en-US/html"/>
+    </copy>
+    <copy todir="tmp-docs-dir/guides/development_guide">
+      <fileset dir="${workdir}/${tag}/docs/development_guide/target/docbook/publish/en-US/html"/>
+    </copy>
+    <copy todir="tmp-docs-dir/guides/transactions_overview_guide">
+      <fileset dir="${workdir}/${tag}/docs/transactions_overview_guide/target/docbook/publish/en-US/html"/>
+    </copy>
+    <copy todir="tmp-docs-dir/guides/txbridge_guide">
+      <fileset dir="${workdir}/${tag}/docs/txbridge_guide/target/docbook/publish/en-US/html"/>
+    </copy>
+    <unzip src="${workdir}/${tag}/rhq-plugin/target/jbossts-jopr-plugin-5.0.0.M1-SNAPSHOT-javadoc.jar" dest="tmp-docs-dir/api/admin"/>
+    <unzip src="${workdir}/${tag}/ArjunaJTS/narayana-jts/target/narayana-jts-5.0.0.M1-SNAPSHOT-javadoc.jar" dest="tmp-docs-dir/api/JTA"/>
+    <unzip src="${workdir}/${tag}/ArjunaJTA/narayana-jta/target/narayana-jta-5.0.0.M1-SNAPSHOT-javadoc.jar" dest="tmp-docs-dir/api/JTS"/>
+    <unzip src="${workdir}/${tag}/XTS/jbossxts/target/jbossxts-5.0.0.M1-SNAPSHOT-javadoc.jar" dest="tmp-docs-dir/api/XTS"/>
+    <move todir="${downloads.dir}/${version}">
+      <fileset dir="tmp-downloads-dir"/>
+    </move>
+    <move todir="${docs.dir}/${version}">
+      <fileset dir="tmp-docs-dir"/>
+    </move>
+  </target>
+  <!-- copy the release artifacts to the maven repository -->
+  <target name="mvn-repository" description="copy the release artifacts to the maven repository">
+    <!-- xts -->
+    <mvn-artifact.macro artifact="jbossxts-tests" packaging="zip" dir="${workdir}/build/${tag}/xts/tests"/>
+    <mvn-artifact.macro artifact="jbossxts-interop-tests" packaging="zip" dir="${workdir}/build/${tag}/xts/interop-tests"/>
+  </target>
+  <!-- magnolia (the cms that sits behind jboss.org/jbosstm pages) is a pain. This target generates
      xml for /downloads/somerelease.xml pages to ease some of the pain in publishing an upload
       right click jbosstm/downloads node, import from xml, then right click new node and activate.
       download ordering in the rollover menu is determined by ordering the GUI - move new page as needed.
       edit the 'downloads' node itself to link the new release from downloads.html, it's not automatic. -->
-    <target name="magnolia">
-
-        <exec executable="date" outputproperty="date">
-            <arg line="+'%FT%H:%M:%S.000Z'"/>
-        </exec>
-
-        <length property="jta-src-length" file="${workdir}/jbossts-jta-${version}-src.zip"/>
-        <length property="full-src-length" file="${workdir}/jbossts-full-${version}-src.zip"/>
-        <length property="jta-bin-length" file="${workdir}/jbossts-jta-${version}.zip"/>
-        <length property="full-bin-length" file="${workdir}/jbossts-full-${version}.zip"/>
-
-        <copy  file="magnolia-release-download-page-template.xml"
-               tofile="${workdir}/website.jbosstm.downloads.${version}.xml"
-               filtering="true"
-               overwrite="true">
-            <filterset>
-                <filter token="tag" value="${tag}"/>
-                <filter token="version" value="${version}"/>
-                <filter token="date" value="${date}"/>
-                <filter token="jta-src-length" value="${jta-src-length}"/>
-                <filter token="full-src-length" value="${full-src-length}"/>
-                <filter token="jta-bin-length" value="${jta-bin-length}"/>
-                <filter token="full-bin-length" value="${full-bin-length}"/>
-            </filterset>
-        </copy>
-
-    </target>
-
+  <target name="magnolia">
+    <exec executable="date" outputproperty="date">
+      <arg line="+'%FT%H:%M:%S.000Z'"/>
+    </exec>
+    <length property="jta-src-length" file="${workdir}/jbossts-jta-${version}-src.zip"/>
+    <length property="full-src-length" file="${workdir}/jbossts-full-${version}-src.zip"/>
+    <length property="jta-bin-length" file="${workdir}/jbossts-jta-${version}.zip"/>
+    <length property="full-bin-length" file="${workdir}/jbossts-full-${version}.zip"/>
+    <copy file="magnolia-release-download-page-template.xml" tofile="${workdir}/website.jbosstm.downloads.${version}.xml" filtering="true" overwrite="true">
+      <filterset>
+        <filter token="tag" value="${tag}"/>
+        <filter token="version" value="${version}"/>
+        <filter token="date" value="${date}"/>
+        <filter token="jta-src-length" value="${jta-src-length}"/>
+        <filter token="full-src-length" value="${full-src-length}"/>
+        <filter token="jta-bin-length" value="${jta-bin-length}"/>
+        <filter token="full-bin-length" value="${full-bin-length}"/>
+      </filterset>
+    </copy>
+  </target>
 </project>



More information about the jboss-svn-commits mailing list