This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit e500c104611d00a94d089845f7928c9ec860a64a
Author: Alex Harui <aha...@apache.org>
AuthorDate: Wed Jan 10 00:16:16 2018 -0800

    try to script updating develop branch poms from profiles that are not 
active when release branch is cut
---
 releasecandidate.xml | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/releasecandidate.xml b/releasecandidate.xml
index 236f9dd..02c2eba 100644
--- a/releasecandidate.xml
+++ b/releasecandidate.xml
@@ -649,6 +649,31 @@
             <!--<arg value="-DpushChanges=false" />-->
             <arg value="-DbranchName=release/${release.version}" />
         </exec>
+        <antcall target="update_other_develop_poms" />
+    </target>
+    
+    <target name="update_other_develop_poms" depends="check-royale-asjs">
+        <exec executable="${mvn}" dir="${asjs}" failonerror="false" >
+            <arg value="checkout" />
+            <arg value="develop" />
+        </exec>
+        <xmlproperty file="${asjs}/pom.xml" prefix="pom"/>
+        <echo>next version is: ${pom.project.version}</echo>
+        <exec executable="${mvn}" dir="${asjs}" failonerror="true" >
+            <arg value="versions:set" />
+            <arg value="-DgenerateBackupPoms=false" />
+            <arg value="-DnewVersion=${pom.project.version}" />
+        </exec>
+        <exec executable="${git}" dir="${asjs}" failonerror="true" >
+            <arg value="add" />
+            <arg value="." />
+        </exec>
+        <exec executable="${git}" dir="${asjs}" failonerror="true" >
+            <arg value="commit" />
+            <arg value="-m" />
+            <arg value="update other poms to next version" />
+        </exec>
+        <echo>run git show in royale-asjs to double-check the last commit then 
run git-push</echo>
     </target>
     
     <target name="maven.prepare">

-- 
To stop receiving notification emails like this one, please contact
"commits@royale.apache.org" <commits@royale.apache.org>.

Reply via email to