You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by hi...@apache.org on 2014/10/29 23:42:23 UTC

svn commit: r1635321 - /ant/site/ivy/build.xml

Author: hibou
Date: Wed Oct 29 22:42:23 2014
New Revision: 1635321

URL: http://svn.apache.org/r1635321
Log:
Add a simple target to checkout an history version from git

Modified:
    ant/site/ivy/build.xml

Modified: ant/site/ivy/build.xml
URL: http://svn.apache.org/viewvc/ant/site/ivy/build.xml?rev=1635321&r1=1635320&r2=1635321&view=diff
==============================================================================
--- ant/site/ivy/build.xml (original)
+++ ant/site/ivy/build.xml Wed Oct 29 22:42:23 2014
@@ -20,6 +20,7 @@
 
     <property name="sources.dir" value="${basedir}/sources" />
     <property name="target.dir" value="${basedir}/production" />
+    <property name="work.dir" value="${basedir}/work" />
 
     <import file="../common-xooki-build.xml" />
 
@@ -77,6 +78,22 @@
         <generate-printdoc version="latest-milestone" />
     </target>
 
+    <target name="checkout-history" description="Checkout the specific history version into the site source">
+        <fail unless="history.version" message="missing property history.version" />
+
+        <delete dir="${work.dir}/ant-ivy" failonerror="false" />
+        <mkdir dir="${work.dir}" />
+        <exec executable="git" failonerror="true" dir="${work.dir}">
+            <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}" />
+        </exec>
+        <copy todir="${sources.dir}/history/${history.version}" overwrite="true">
+            <fileset dir="${work.dir}/ant-ivy/doc" />
+        </copy>
+    </target>
+
     <target name="generate-history" description="Generate the part of the website of a specific history version">
         <fail unless="history.version" message="missing property history.version" />