Author: xavier
Date: Thu Mar  8 04:32:46 2007
New Revision: 516023

URL: http://svn.apache.org/viewvc?view=rev&rev=516023
Log:
add publish-latest target to ease snapshot publishing

Modified:
    incubator/ivy/core/trunk/build.xml

Modified: incubator/ivy/core/trunk/build.xml
URL: 
http://svn.apache.org/viewvc/incubator/ivy/core/trunk/build.xml?view=diff&rev=516023&r1=516022&r2=516023
==============================================================================
--- incubator/ivy/core/trunk/build.xml (original)
+++ incubator/ivy/core/trunk/build.xml Thu Mar  8 04:32:46 2007
@@ -365,4 +365,20 @@
        <target name="snapshot" depends="clean, snapshot-version, 
coverage-report, snapshot-src, snapshot-bin, javadoc, zip-doc" 
description="used for nightly and integration builds"/>
        <target name="release" depends="release-version, snapshot" 
description="make a new release of Ivy"/>
 
+       <!-- 
+               publication on ivy web site
+               requires to be logged in on people.apache.org 
+       -->
+       <available property="loggedin" 
file="/www/incubator.apache.org/ivy/index.html"/>
+       <target name="publish-latest" if="loggedin" description="publishes the 
last snapshot done to ivy web site">
+          <property name="html.dir" 
value="/www/incubator.apache.org/ivy/downloads/latest/"/>
+          <delete>
+              <fileset dir="${html.dir}"/>
+          </delete>
+          <copy todir="${html.dir}">
+              <fileset dir="${distrib.dir}"/>
+          </copy>
+       </target>
+
+
 </project>


Reply via email to