forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject svn commit: rev 10135 - xml/forrest/trunk/scratchpad/forrestbot2/core
Date Tue, 20 Apr 2004 21:15:25 GMT
Author: brondsem
Date: Tue Apr 20 14:15:25 2004
New Revision: 10135

Modified:
   xml/forrest/trunk/scratchpad/forrestbot2/core/getsrc.xml
Log:
make sure work dir is empty before putting the source into it

Modified: xml/forrest/trunk/scratchpad/forrestbot2/core/getsrc.xml
==============================================================================
--- xml/forrest/trunk/scratchpad/forrestbot2/core/getsrc.xml	(original)
+++ xml/forrest/trunk/scratchpad/forrestbot2/core/getsrc.xml	Tue Apr 20 14:15:25 2004
@@ -19,11 +19,14 @@
   <!-- default values -->
   <property name="getsrc.local.root-dir" value=""/>
 
+  <target name="getsrc.clean-workdir">
+      <delete dir="${build.work-dir}"/>
+  </target>
+
   <target name="getsrc.local">
     <property name="build.home-dir" value="${getsrc.local.root-dir}" />
   </target>
 
-
   <!-- default values -->
   <property name="getsrc.cvs.user" value="anoncvs"/>
   <property name="getsrc.cvs.password" value="anoncvs"/>
@@ -34,7 +37,7 @@
 
   <property name="build.cvsmodule-dir"    location="work/cvsmodules"/>
 
-  <target name="getsrc.cvs">
+  <target name="getsrc.cvs" depends="getsrc.clean-workdir">
 
     <cvspass cvsroot=":pserver:${getsrc.cvs.user}@${getsrc.cvs.host}:${getsrc.cvs.root}"
password="${getsrc.cvs.password}"/>
 
@@ -98,7 +101,7 @@
 
   <property name="build.svn-dir"    location="work/svn"/>
 
-  <target name="getsrc.svn">
+  <target name="getsrc.svn" depends="getsrc.clean-workdir">
     <!-- non-recursive; just to get forrest.properties -->
     <svncheckout repositoryUrl="${getsrc.svn.url}"
       destination="${build.svn-dir}/${ant.project.name}"

Mime
View raw message