Author: veithen
Date: Sun Dec 20 13:32:49 2015
New Revision: 1721025
URL: http://svn.apache.org/viewvc?rev=1721025&view=rev
Log:
Add Python script to stage distributions.
Added:
axis/axis2/java/core/trunk/etc/dist.py
Removed:
axis/axis2/java/core/trunk/src/main/
Modified:
axis/axis2/java/core/trunk/modules/distribution/pom.xml
axis/axis2/java/core/trunk/modules/parent/pom.xml
axis/axis2/java/core/trunk/modules/tool/axis2-eclipse-codegen-plugin/pom.xml
axis/axis2/java/core/trunk/modules/tool/axis2-eclipse-service-plugin/pom.xml
axis/axis2/java/core/trunk/modules/tool/axis2-idea-plugin/pom.xml
axis/axis2/java/core/trunk/pom.xml
Added: axis/axis2/java/core/trunk/etc/dist.py
URL:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/etc/dist.py?rev=1721025&view=auto
==============================================================================
--- axis/axis2/java/core/trunk/etc/dist.py (added)
+++ axis/axis2/java/core/trunk/etc/dist.py Sun Dec 20 13:32:49 2015
@@ -0,0 +1,51 @@
+#
+# 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/core/", dist_root])
+mkdir(dist_dir)
+for suffix in [ "zip", "zip.asc", "zip.md5", "zip.sha1" ]:
+ for classifier in [ "bin", "src", "war" ]:
+ file = "axis2-" + release + "-" + classifier + "." + suffix
+ copyfile(join(root_dir, "modules", "distribution", "target", file),
join(dist_dir, file))
+ for tool in [ "codegen", "service" ]:
+ copyfile(join(root_dir, "modules", "tool", "axis2-eclipse-" + tool +
"-plugin", "target", "axis2.eclipse." + tool + ".plugin-" + release + "-dist."
+ suffix),
+ join(dist_dir, "axis2-eclipse-" + tool + "-plugin-" + release
+ "." + suffix))
+ file = "axis2-idea-plugin-" + release + "." + suffix
+ copyfile(join(root_dir, "modules", "tool", "axis2-idea-plugin", "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])
Modified: axis/axis2/java/core/trunk/modules/distribution/pom.xml
URL:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/distribution/pom.xml?rev=1721025&r1=1721024&r2=1721025&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/distribution/pom.xml (original)
+++ axis/axis2/java/core/trunk/modules/distribution/pom.xml Sun Dec 20 13:32:49
2015
@@ -475,10 +475,15 @@
<build>
<plugins>
<plugin>
- <artifactId>maven-install-plugin</artifactId>
- <configuration>
- <createChecksum>true</createChecksum>
- </configuration>
+ <groupId>net.ju-n.maven.plugins</groupId>
+ <artifactId>checksum-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>artifacts</goal>
+ </goals>
+ </execution>
+ </executions>
</plugin>
</plugins>
</build>
Modified: axis/axis2/java/core/trunk/modules/parent/pom.xml
URL:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/parent/pom.xml?rev=1721025&r1=1721024&r2=1721025&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/parent/pom.xml (original)
+++ axis/axis2/java/core/trunk/modules/parent/pom.xml Sun Dec 20 13:32:49 2015
@@ -1104,6 +1104,11 @@
<artifactId>maven-bundle-plugin</artifactId>
<version>2.1.0</version>
</plugin>
+ <plugin>
+ <groupId>net.ju-n.maven.plugins</groupId>
+ <artifactId>checksum-maven-plugin</artifactId>
+ <version>1.2</version>
+ </plugin>
<!-- Use 1.5.2 versions of the aar and mar plugins in order to
avoid
the chicken and egg problem. -->
Modified:
axis/axis2/java/core/trunk/modules/tool/axis2-eclipse-codegen-plugin/pom.xml
URL:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/tool/axis2-eclipse-codegen-plugin/pom.xml?rev=1721025&r1=1721024&r2=1721025&view=diff
==============================================================================
---
axis/axis2/java/core/trunk/modules/tool/axis2-eclipse-codegen-plugin/pom.xml
(original)
+++
axis/axis2/java/core/trunk/modules/tool/axis2-eclipse-codegen-plugin/pom.xml
Sun Dec 20 13:32:49 2015
@@ -256,10 +256,15 @@
<build>
<plugins>
<plugin>
- <artifactId>maven-install-plugin</artifactId>
- <configuration>
- <createChecksum>true</createChecksum>
- </configuration>
+ <groupId>net.ju-n.maven.plugins</groupId>
+ <artifactId>checksum-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>artifacts</goal>
+ </goals>
+ </execution>
+ </executions>
</plugin>
</plugins>
</build>
Modified:
axis/axis2/java/core/trunk/modules/tool/axis2-eclipse-service-plugin/pom.xml
URL:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/tool/axis2-eclipse-service-plugin/pom.xml?rev=1721025&r1=1721024&r2=1721025&view=diff
==============================================================================
---
axis/axis2/java/core/trunk/modules/tool/axis2-eclipse-service-plugin/pom.xml
(original)
+++
axis/axis2/java/core/trunk/modules/tool/axis2-eclipse-service-plugin/pom.xml
Sun Dec 20 13:32:49 2015
@@ -233,10 +233,15 @@
<build>
<plugins>
<plugin>
- <artifactId>maven-install-plugin</artifactId>
- <configuration>
- <createChecksum>true</createChecksum>
- </configuration>
+ <groupId>net.ju-n.maven.plugins</groupId>
+ <artifactId>checksum-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>artifacts</goal>
+ </goals>
+ </execution>
+ </executions>
</plugin>
</plugins>
</build>
Modified: axis/axis2/java/core/trunk/modules/tool/axis2-idea-plugin/pom.xml
URL:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/tool/axis2-idea-plugin/pom.xml?rev=1721025&r1=1721024&r2=1721025&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/tool/axis2-idea-plugin/pom.xml (original)
+++ axis/axis2/java/core/trunk/modules/tool/axis2-idea-plugin/pom.xml Sun Dec
20 13:32:49 2015
@@ -199,10 +199,15 @@
<build>
<plugins>
<plugin>
- <artifactId>maven-install-plugin</artifactId>
- <configuration>
- <createChecksum>true</createChecksum>
- </configuration>
+ <groupId>net.ju-n.maven.plugins</groupId>
+ <artifactId>checksum-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>artifacts</goal>
+ </goals>
+ </execution>
+ </executions>
</plugin>
</plugins>
</build>
Modified: axis/axis2/java/core/trunk/pom.xml
URL:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/pom.xml?rev=1721025&r1=1721024&r2=1721025&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/pom.xml (original)
+++ axis/axis2/java/core/trunk/pom.xml Sun Dec 20 13:32:49 2015
@@ -137,30 +137,8 @@
<skipAssembly>true</skipAssembly>
</configuration>
</execution>
- <execution>
- <id>prepare-dists</id>
- <!-- Must be done in the install phase after
the checksum and signature for
- the docs distribution has been generated.
-->
- <phase>install</phase>
- <goals>
- <goal>single</goal>
- </goals>
- <configuration>
- <descriptors>
-
<descriptor>src/main/assembly/dists.xml</descriptor>
- </descriptors>
- <!-- We can only prepare the distributions
if they have been signed -->
- <skipAssembly>${gpg.skip}</skipAssembly>
- </configuration>
- </execution>
</executions>
</plugin>
- <plugin>
- <artifactId>maven-install-plugin</artifactId>
- <configuration>
- <createChecksum>true</createChecksum>
- </configuration>
- </plugin>
</plugins>
</build>
</profile>