[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

A simple build script question

From: Mark A. Keenan <keenan_at_p2sol.com>
Date: 2006-09-10 16:01:21 CEST

Hello,

 

I am having a small issue in writing a build script and I'm hoping
someone can help me find a solution.

 

The project is structured roughly like this:

 

/project/src

/project/doc

/project/script

/project/lib

 

What I want to do is:

 

1) Checkout only the script folder

2) From the script folder, run NANT which performs the build

      a) checkout the other folders

      b) create artifacts (binaries, etc)

      c) checkin artifacts

      d) tag release

 

I have step two working, it's the first one that I'm struggling with. If
I do this:

 

      svn co svn://machine:port/project/trunk/script c:\project\script

 

Then I get an error during the build that the 'script' folder already
exists:

 

      svn: Failed to add directory 'script': object of the same name
already exists

 

 

OK, I understand the reason behind that, but if instead I do this:

 

      svn co svn://machine:port/project/trunk c:\project -N

      svn co svn://machine:port/project/trunk/script c:\project\script

 

Then during the "checkout" stage of the build process nothing happens.
This is due to the well known behavior of the -N option.

 

I assume that I'm missing the obvious solution. What are others doing
in this situation?

 

 

 
Received on Mon Sep 11 15:37:25 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.