You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by ve...@apache.org on 2015/12/10 21:06:51 UTC

svn commit: r1719191 - in /axis/axis2/java/rampart/trunk: etc/ etc/dist.py modules/distribution/pom.xml

Author: veithen
Date: Thu Dec 10 20:06:51 2015
New Revision: 1719191

URL: http://svn.apache.org/viewvc?rev=1719191&view=rev
Log:
Automatically generate checksum files for the distributions and add a script to stage distributions to dist.apache.org.

Added:
    axis/axis2/java/rampart/trunk/etc/
    axis/axis2/java/rampart/trunk/etc/dist.py   (with props)
Modified:
    axis/axis2/java/rampart/trunk/modules/distribution/pom.xml

Added: axis/axis2/java/rampart/trunk/etc/dist.py
URL: http://svn.apache.org/viewvc/axis/axis2/java/rampart/trunk/etc/dist.py?rev=1719191&view=auto
==============================================================================
--- axis/axis2/java/rampart/trunk/etc/dist.py (added)
+++ axis/axis2/java/rampart/trunk/etc/dist.py Thu Dec 10 20:06:51 2015
@@ -0,0 +1,45 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+#
+
+from os import *
+from os.path import *
+from shutil import copyfile
+from shutil import rmtree
+from subprocess import call
+from xml.etree.ElementTree import parse
+
+root_dir = realpath(join(dirname(__file__), ".."))
+pom = parse(join(root_dir, "pom.xml"))
+release = pom.getroot().find("{http://maven.apache.org/POM/4.0.0}version").text
+dist_root = join(root_dir, "target", "dist")
+dist_dir = join(dist_root, release)
+
+if exists(dist_root):
+    rmtree(dist_root)
+call(["svn", "checkout", "https://dist.apache.org/repos/dist/dev/axis/axis2/java/rampart/", dist_root])
+mkdir(dist_dir)
+for classifier in [ "bin", "src" ]:
+    for suffix in [ "zip", "zip.asc", "zip.md5"]:
+        file = "rampart-dist-" + release + "-" + classifier + "." + suffix
+        copyfile(join(root_dir, "modules", "distribution", "target", file), join(dist_dir, file))
+call(["svn", "add", dist_dir])
+if release.endswith("-SNAPSHOT"):
+    print "Skipping commit because version is a snapshot."
+else:
+    call(["svn", "commit", dist_dir])

Propchange: axis/axis2/java/rampart/trunk/etc/dist.py
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: axis/axis2/java/rampart/trunk/modules/distribution/pom.xml
URL: http://svn.apache.org/viewvc/axis/axis2/java/rampart/trunk/modules/distribution/pom.xml?rev=1719191&r1=1719190&r2=1719191&view=diff
==============================================================================
--- axis/axis2/java/rampart/trunk/modules/distribution/pom.xml (original)
+++ axis/axis2/java/rampart/trunk/modules/distribution/pom.xml Thu Dec 10 20:06:51 2015
@@ -78,6 +78,18 @@
                 </executions>
             </plugin>
             <plugin>
+                <groupId>net.ju-n.maven.plugins</groupId>
+                <artifactId>checksum-maven-plugin</artifactId>
+                <version>1.2</version>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>artifacts</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
                 <artifactId>maven-site-plugin</artifactId>
                 <configuration>
                     <skip>true</skip>