commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1570821 - /commons/proper/lang/trunk/src/release-tools/build.xml
Date Sat, 22 Feb 2014 11:33:22 GMT
Author: britter
Date: Sat Feb 22 11:33:21 2014
New Revision: 1570821

URL: http://svn.apache.org/r1570821
Log:
Provide a possibility to use mvn deploy for uploading to nexus

Modified:
    commons/proper/lang/trunk/src/release-tools/build.xml

Modified: commons/proper/lang/trunk/src/release-tools/build.xml
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/release-tools/build.xml?rev=1570821&r1=1570820&r2=1570821&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/release-tools/build.xml (original)
+++ commons/proper/lang/trunk/src/release-tools/build.xml Sat Feb 22 11:33:21 2014
@@ -22,7 +22,7 @@
    Build file for creating release candidates and releasing lang.
    $Id$
 -->
-<project name="release-lang" basedir="../../">
+<project name="release-lang" basedir="../../" xmlns:if="ant:if">
 
     <target name="-init">
         <property file="src/release-tools/build.properties" />
@@ -71,7 +71,7 @@
 
         <mvn goal="deploy">
             <arg value="-Prelease" />
-            <arg value="-Ptest-deploy" />
+            <arg value="-Ptest-deploy" if:true="${test.run}"/>
             <arg value="-Duser.name=${apache.id}" />
             <arg value="-Dgpg.passphrase=${gpg.pass}" />
         </mvn>
@@ -128,8 +128,25 @@
                  passphrase="${ssh.pass}"/>
     </target>
 
-    <target name="nexus-bundle" depends="-build-maven-artifacts"
+    <target name="nexus-upload-test-run"
+            description="Creates all artifacts and deploys them to the target dir">
+        <antcall target="-build-maven-artifacts">
+            <param name="test.run" value="true"/>
+        </antcall>
+    </target>
+
+    <target name="nexus-upload"
+            description="Creates all artifacts and uploads them to Nexus">
+        <antcall target="-build-maven-artifacts">
+            <param name="test.run" value="false"/>
+        </antcall>
+    </target>
+
+    <target name="nexus-bundle"
             description="Creates an upload bundle suitable for Nexus Snapshot Upload">
+        <antcall target="-build-maven-artifacts">
+            <param name="test.run" value="true"/>
+        </antcall>
         <jar destfile="target/upload-bundle.jar">
             <fileset dir="${repo.path}">
                 <include name="*.jar"/>



Mime
View raw message