ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hi...@apache.org
Subject svn commit: r1635330 - /ant/site/ivy/build.xml
Date Wed, 29 Oct 2014 23:10:35 GMT
Author: hibou
Date: Wed Oct 29 23:10:34 2014
New Revision: 1635330

URL: http://svn.apache.org/r1635330
Log:
Improve the checkout so it can handle the latest milestone branch

Modified:
    ant/site/ivy/build.xml

Modified: ant/site/ivy/build.xml
URL: http://svn.apache.org/viewvc/ant/site/ivy/build.xml?rev=1635330&r1=1635329&r2=1635330&view=diff
==============================================================================
--- ant/site/ivy/build.xml (original)
+++ ant/site/ivy/build.xml Wed Oct 29 23:10:34 2014
@@ -80,6 +80,7 @@
 
     <target name="checkout-history" description="Checkout the specific history version
into the site source">
         <fail unless="history.version" message="missing property history.version" />
+        <property name="target.history.folder" value="${history.version}" />
 
         <delete dir="${work.dir}/ant-ivy" failonerror="false" />
         <mkdir dir="${work.dir}" />
@@ -87,9 +88,10 @@
             <arg line="clone http://git.apache.org/ant-ivy.git" />
         </exec>
         <exec executable="git" failonerror="true" dir="${work.dir}/ant-ivy">
-            <arg line="checkout ${history.version}" />
+            <arg line="checkout -q ${history.version}" />
         </exec>
-        <copy todir="${sources.dir}/history/${history.version}" overwrite="true">
+        <delete dir="${sources.dir}/history/${target.history.folder}" failonerror="false"
/>
+        <copy todir="${sources.dir}/history/${target.history.folder}" overwrite="true">
             <fileset dir="${work.dir}/ant-ivy/doc" />
         </copy>
     </target>



Mime
View raw message