river-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dre...@apache.org
Subject svn commit: r1444465 - /river/jtsk/branches/2.2/poms/deploy_river.groovy
Date Sat, 09 Feb 2013 23:32:00 GMT
Author: dreedy
Date: Sat Feb  9 23:32:00 2013
New Revision: 1444465

URL: http://svn.apache.org/r1444465
Log:
Added script to deploy River artifacts

Added:
    river/jtsk/branches/2.2/poms/deploy_river.groovy   (with props)

Added: river/jtsk/branches/2.2/poms/deploy_river.groovy
URL: http://svn.apache.org/viewvc/river/jtsk/branches/2.2/poms/deploy_river.groovy?rev=1444465&view=auto
==============================================================================
--- river/jtsk/branches/2.2/poms/deploy_river.groovy (added)
+++ river/jtsk/branches/2.2/poms/deploy_river.groovy Sat Feb  9 23:32:00 2013
@@ -0,0 +1,57 @@
+#!/usr/bin/env groovy
+/*
+ * Copyright to the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+String version = "2.2.1"
+String rootDir = ".."
+        
+["net.jini:jsk-platform":"lib",
+ "net.jini:jsk-lib":"lib",
+ "net.jini:jsk-dl":"lib-dl",
+ "net.jini:jsk-resources":"lib",
+ "net.jini.lookup:serviceui":"lib",
+ "org.apache.river:fiddler":"lib",
+ "org.apache.river:fiddler-dl":"lib-dl",
+ "org.apache.river:mahalo":"lib",
+ "org.apache.river:mahalo-dl":"lib-dl",
+ "org.apache.river:mercury":"lib",
+ "org.apache.river:mercury-dl":"lib-dl",
+ "org.apache.river:norm":"lib",
+ "org.apache.river:norm-dl":"lib-dl",
+ "org.apache.river:outrigger":"lib",
+ "org.apache.river:outrigger-dl":"lib-dl",
+ "org.apache.river:reggie":"lib",
+ "org.apache.river:reggie-dl":"lib-dl",
+ "org.apache.river:start":"lib"].each {artifact, subDir ->
+    
+    String[] parts = artifact.split(":")
+    String gId = parts[0]
+    String aId = parts[1]
+    String dir = rootDir+"/"+subDir
+    String deployCommand = "mvn deploy:deploy-file "+
+                           "-DrepositoryId=apache.releases.https "+
+                           "-Dversion=${version} "+
+                           "-DgeneratePom=false -Dpackaging=jar "+
+                           "-DgroupId=${gId} "+
+                           "-DartifactId=${aId} "+
+                           "-Dfile=${dir}/${aId}.jar "+
+                           "-DpomFile=./${aId}.pom "+
+                           "-Durl=https://repository.apache.org/service/local/staging/deploy/maven2"
+    println deployCommand
+    Process process = deployCommand.execute()
+    process.consumeProcessOutputStream(System.out)
+    process.consumeProcessErrorStream(System.err)
+    process.waitFor()
+}
\ No newline at end of file

Propchange: river/jtsk/branches/2.2/poms/deploy_river.groovy
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message