openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mik...@apache.org
Subject svn commit: r797456 - in /openjpa/trunk/openjpa-project: pom.xml upload.xml
Date Fri, 24 Jul 2009 13:52:15 GMT
Author: mikedd
Date: Fri Jul 24 13:52:15 2009
New Revision: 797456

URL: http://svn.apache.org/viewvc?rev=797456&view=rev
Log:
Moving nightly upload ant script to a separate file

Added:
    openjpa/trunk/openjpa-project/upload.xml   (with props)
Modified:
    openjpa/trunk/openjpa-project/pom.xml

Modified: openjpa/trunk/openjpa-project/pom.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-project/pom.xml?rev=797456&r1=797455&r2=797456&view=diff
==============================================================================
--- openjpa/trunk/openjpa-project/pom.xml (original)
+++ openjpa/trunk/openjpa-project/pom.xml Fri Jul 24 13:52:15 2009
@@ -391,34 +391,11 @@
                                 <phase>package</phase>
                                 <configuration>
                                     <tasks>
-                                        <mkdir dir="target/site/tempDocs" />
-                                        <unzip dest="target/site/tempDocs">
-                                            <fileset dir="target/site/downloads">
-                                                <include name="*binary*.zip" />
-                                            </fileset>
-                                            <patternset>
-                                                <include name="**/javadoc/**" />
-                                                <include name="**/manual/**" />
-                                            </patternset>
-                                        </unzip>
-                                        <move todir="target/site/tempDocs/docs">
-                                            <fileset dir="target/site/tempDocs/apache-openjpa-${pom.version}/docs"
/> 
-                                        </move>
-                                        <checksum> 
-                                            <fileset dir="target/site/downloads/">
-                                                <include name="*.zip" />
-                                            </fileset>
-                                        </checksum>
-                                        <scp todir="${nightly.user.name}:${nightly.password}@people.apache.org:/www/openjpa.apache.org/builds/${nightly.version}/downloads"
trust="true">
-                                            <fileset dir="target/site/downloads" />
-                                        </scp>
-                                        <scp todir="${nightly.user.name}:${nightly.password}@people.apache.org:/www/openjpa.apache.org/builds/${nightly.version}/docs"
trust="true">
-                                            <fileset dir="target/site/tempDocs/docs" />

-                                        </scp>
-                                        <sshexec host="people.apache.org" username="${nightly.user.name}"
password="${nightly.password}" command="chmod -R g+w /www/openjpa.apache.org/builds/${nightly.version}"
trust="true" />
-                                        <delete>
-                                            <fileset dir="target/site/tempDocs" />
-                                        </delete>
+                                        <ant antfile="upload.xml" target="upload" unheritRefs="true">
+                                            <property name="${nightly.user.name}" value="${nightly.user.name}"/>
+                                            <property name="${nightly.password}" value="${nightly.password}"/>
+                                            <property name="${nightly.version}" value="${nightly.version}"/>
+                                        </ant>
                                     </tasks>
                                 </configuration>
                                 <goals>

Added: openjpa/trunk/openjpa-project/upload.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-project/upload.xml?rev=797456&view=auto
==============================================================================
--- openjpa/trunk/openjpa-project/upload.xml (added)
+++ openjpa/trunk/openjpa-project/upload.xml Fri Jul 24 13:52:15 2009
@@ -0,0 +1,36 @@
+<project name="upload" default="dist" basedir=".">
+    <description>
+        Ant build file used to upload binaries to openjpa.apache.org/builds/latest. 
+    </description>
+    <target name="upload">
+        <mkdir dir="target/site/tempDocs" />
+        <unzip dest="target/site/tempDocs">
+            <fileset dir="target/site/downloads">
+                <include name="*binary*.zip" />
+            </fileset>
+            <patternset>
+                <include name="**/javadoc/**" />
+                <include name="**/manual/**" />
+            </patternset>
+        </unzip>
+        <move todir="target/site/tempDocs/docs">
+            <fileset dir="target/site/tempDocs/apache-openjpa-${pom.version}/docs" />

+        </move>
+        <checksum> 
+            <fileset dir="target/site/downloads/">
+                <include name="*.zip" />
+            </fileset>
+        </checksum>
+        <scp todir="${nightly.user.name}:${nightly.password}@people.apache.org:/www/openjpa.apache.org/builds/${nightly.version}/downloads"
trust="true">
+            <fileset dir="target/site/downloads" />
+        </scp>
+        <scp todir="${nightly.user.name}:${nightly.password}@people.apache.org:/www/openjpa.apache.org/builds/${nightly.version}/docs"
trust="true">
+            <fileset dir="target/site/tempDocs/docs" /> 
+        </scp>
+        <sshexec host="people.apache.org" username="${nightly.user.name}" password="${nightly.password}"
command="chmod -R g+w /www/openjpa.apache.org/builds/${nightly.version}" trust="true" />
+        <delete>
+            <fileset dir="target/site/tempDocs" />
+        </delete>
+    </target>
+</project>
+

Propchange: openjpa/trunk/openjpa-project/upload.xml
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message