You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by br...@apache.org on 2004/04/20 23:15:25 UTC
svn commit: rev 10135 - xml/forrest/trunk/scratchpad/forrestbot2/core
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}"