ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1689243 - in /webservices/woden/trunk/java: etc/dist.py pom.xml
Date Sun, 05 Jul 2015 12:13:40 GMT
Author: veithen
Date: Sun Jul  5 12:13:40 2015
New Revision: 1689243

URL: http://svn.apache.org/r1689243
Log:
Use a simple Python script to prepare the distributions for upload.

Added:
    webservices/woden/trunk/java/etc/dist.py
      - copied, changed from r1689233, webservices/axiom/trunk/etc/dist.py
Modified:
    webservices/woden/trunk/java/pom.xml

Copied: webservices/woden/trunk/java/etc/dist.py (from r1689233, webservices/axiom/trunk/etc/dist.py)
URL: http://svn.apache.org/viewvc/webservices/woden/trunk/java/etc/dist.py?p2=webservices/woden/trunk/java/etc/dist.py&p1=webservices/axiom/trunk/etc/dist.py&r1=1689233&r2=1689243&rev=1689243&view=diff
==============================================================================
--- webservices/axiom/trunk/etc/dist.py (original)
+++ webservices/woden/trunk/java/etc/dist.py Sun Jul  5 12:13:40 2015
@@ -24,20 +24,21 @@ from shutil import rmtree
 from subprocess import call
 from xml.etree.ElementTree import parse
 
-axiom_dir = realpath(join(dirname(__file__), ".."))
-pom = parse(join(axiom_dir, "pom.xml"))
+woden_dir = realpath(join(dirname(__file__), ".."))
+pom = parse(join(woden_dir, "pom.xml"))
 release = pom.getroot().find("{http://maven.apache.org/POM/4.0.0}version").text
-dist_root = join(axiom_dir, "target", "dist")
+dist_root = join(woden_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/ws/axiom/", dist_root])
+call(["svn", "checkout", "https://dist.apache.org/repos/dist/dev/ws/woden/", dist_root])
 mkdir(dist_dir)
-for classifier in [ "bin", "source-release" ]:
-    for suffix in [ "zip", "zip.asc", "zip.md5"]:
-        file = "axiom-" + release + "-" + classifier + "." + suffix
-        copyfile(join(axiom_dir, "distribution", "target", file), join(dist_dir, file))
+for classifier in [ "dom", "src" ]:
+    for format in [ "tar.bz2", "tar.gz", "zip" ]:
+        for suffix in [ format, "%s.asc" % format, "%s.md5" % format, "%s.sha1" % format
]:
+            file = "woden-" + release + "-" + classifier + "." + suffix
+            copyfile(join(woden_dir, "woden-dist", "target", file), join(dist_dir, file))
 call(["svn", "add", dist_dir])
 if release.endswith("-SNAPSHOT"):
     print "Skipping commit because version is a snapshot."

Modified: webservices/woden/trunk/java/pom.xml
URL: http://svn.apache.org/viewvc/webservices/woden/trunk/java/pom.xml?rev=1689243&r1=1689242&r2=1689243&view=diff
==============================================================================
--- webservices/woden/trunk/java/pom.xml (original)
+++ webservices/woden/trunk/java/pom.xml Sun Jul  5 12:13:40 2015
@@ -251,29 +251,6 @@
                 </plugins>
             </build>
         </profile>
-        <!-- use for distrubution-->
-        <!-- mvn clean package assembly:assembly  antrun:run  -P dist -->
-        <profile>
-            <id>dist</id>
-            <build>
-                <pluginManagement>
-                    <plugins>
-                        <plugin>
-                            <groupId>org.apache.maven.plugins</groupId>
-                            <artifactId>maven-assembly-plugin</artifactId>
-                            <configuration>
-                                <descriptors>
-                                    <descriptor>src/main/assembly/dom.xml</descriptor>
-                                    <descriptor>src/main/assembly/om.xml</descriptor>

-                                    <descriptor>src/main/assembly/src.xml</descriptor>
-                                </descriptors>
-                                <tarLongFileMode>gnu</tarLongFileMode>
-                            </configuration>
-                        </plugin>
-                    </plugins>
-                </pluginManagement>
-            </build>
-        </profile>
         <profile>
             <id>apache-release</id>
             <build>



Mime
View raw message