felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pde...@apache.org
Subject svn commit: r1667669 - /felix/trunk/dependencymanager/release/build.gradle
Date Thu, 19 Mar 2015 06:19:16 GMT
Author: pderop
Date: Thu Mar 19 06:19:16 2015
New Revision: 1667669

URL: http://svn.apache.org/r1667669
Log:
Move to R2 for next release. Fixed promoteToRelease task which has to copy released files
to https://dist.apache.org/repos/dist/release/felix/ location.

Modified:
    felix/trunk/dependencymanager/release/build.gradle

Modified: felix/trunk/dependencymanager/release/build.gradle
URL: http://svn.apache.org/viewvc/felix/trunk/dependencymanager/release/build.gradle?rev=1667669&r1=1667668&r2=1667669&view=diff
==============================================================================
--- felix/trunk/dependencymanager/release/build.gradle (original)
+++ felix/trunk/dependencymanager/release/build.gradle Thu Mar 19 06:19:16 2015
@@ -23,7 +23,7 @@
 import aQute.bnd.build.Workspace
 
 // Our release number, which has to be monotonically incremented each time we make a new
release.
-ext.dmRelease = "r1"
+ext.dmRelease = "r2"
 
 // Our Apache svn Staging repo
 ext.svnStagingPath = "https://dist.apache.org/repos/dist/dev/felix"
@@ -167,11 +167,30 @@ task commitToStaging << {
 // Promotes the staged distributions to release
 task promoteToRelease << {
     description = 'Moves the staging repository to the Apache release repository.'
+    new File("staging-copy").deleteDir()    
+
     getProject().exec { 
     	commandLine 'svn',
-		'move', svnStagingPath+"/org.apache.felix.dependencymanager-" + dmRelease , svnReleasePath,

-		'-m', "Releasing Apache Felix Dependency Manager release " + dmRelease + "."
+		'co', svnStagingPath+"/org.apache.felix.dependencymanager-" + dmRelease, "staging-copy"
+    }
+
+    new File('release/staging-copy/.').eachFile {
+        if (it.name != ".svn") {
+        	def file=it.name    
+        	getProject().exec { 
+    	    	commandLine 'svn',
+		    	'cp', "staging-copy/" + file, svnReleasePath + "/", "-m", "Releasing Apache Felix
Dependency Manager release " + dmRelease + "."
+			}
+    	}
+	}
+	
+	getProject().exec { 
+    	commandLine 'svn',
+		'rm', svnStagingPath+"/org.apache.felix.dependencymanager-" + dmRelease, "-m", 
+		"Releasing Apache Felix Dependency Manager release " + dmRelease + "."
     }
+	
+    new File("release/staging-copy").deleteDir()
 }
 
 // Removes the staged distributions from staging
@@ -187,6 +206,7 @@ task deleteFromStaging << {
 // Clean staging directory
 task clean(overwrite: true) << { 
     new File("release/staging").deleteDir()
+    new File("release/staging-copy").deleteDir()
     new File("rat-report.xml").delete()
 }
 
@@ -194,4 +214,5 @@ task clean(overwrite: true) << {
 task cleanStaging << {
     description = 'Clean the local staging directory.'
     new File("release/staging").deleteDir()
+    new File("release/staging-copy").deleteDir()
 }



Mime
View raw message