You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by va...@apache.org on 2007/08/24 11:41:03 UTC

svn commit: r569317 - /harmony/enhanced/buildtest/branches/2.0/adaptors/make-snapshot/adaptor.xml

Author: varlax
Date: Fri Aug 24 02:41:03 2007
New Revision: 569317

URL: http://svn.apache.org/viewvc?rev=569317&view=rev
Log:
organized better structure for uploading

Modified:
    harmony/enhanced/buildtest/branches/2.0/adaptors/make-snapshot/adaptor.xml

Modified: harmony/enhanced/buildtest/branches/2.0/adaptors/make-snapshot/adaptor.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/adaptors/make-snapshot/adaptor.xml?rev=569317&r1=569316&r2=569317&view=diff
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/adaptors/make-snapshot/adaptor.xml (original)
+++ harmony/enhanced/buildtest/branches/2.0/adaptors/make-snapshot/adaptor.xml Fri Aug 24 02:41:03 2007
@@ -41,7 +41,14 @@
     </target>
 
     <target name="upload" if="do.upload">
-        <copy todir="${make-snapshot.parameters.optional.upload.dir}">
+        <property file="${trunk.dir}/release.properties" prefix="upload"/>
+        <condition property="upload.dir" value="${make-snapshot.parameters.optional.upload.dir}/r${upload.svn.revision}" 
+            else="${make-snapshot.parameters.optional.upload.dir}">
+            <isset property="upload.svn.revision"/>
+        </condition>
+        <mkdir dir="${upload.dir}"/>
+        <chmod file="${target.dir}" perm="ugo+rw"/>
+        <copy todir="${upload.dir}">
             <fileset dir="${target.dir}" includes="*">
                 <type type="file"/>
             </fileset>