Great !
Actually, it would've been interesting to see your debug build log. One of the things it does is output each path in your PATH while it searches for svn.exe. If you didn't have svn.exe in your path, it would definitely cause a NullReference error right after your last path is searched. To fix your

"External Program Failed: C:\WINDOWS\svn.exe (return code was 1)"

error, simply place your svn path at the front of your PATH.

Have fun with NAnt. I just started using it last week and am very thankful that the NAnt people did such a good job with this tool.

Oh, if you still have problems with <svn>, it's probably better to post your questions to nantcontrib-developer@lists.sourceforge.net since that's where svn belongs.

vince



Jennifer Brandon wrote:

Hi,

I switched to an <exec> task after seeing a colleague was using it to
perform a svn update task.  When I added the svn.exe to my PATH it
worked straight off - I didn't bother to go back and try <svn>.

But for debug purposes I've just tried to execute the following task:

<svn command="export" uri="${subversion.url}"
destination="${dependentProject.dir}" username="${subversion.username}"
password="${subversion.password}" />

And I do not get a NullReferenceException anymore!!!
However the build fails with:
"External Program Failed: C:\WINDOWS\svn.exe (return code was 1)"

and splurges a uses page - I assume I've got the parameters wrong on the
svn task?

This is just for your info as I'm quite happy to use the <exec> task!

Thanks

Jenny

-----Original Message-----
From: Marcin Hoppe [mailto:[EMAIL PROTECTED] Sent: 10 June 2005 11:23
To: Vincent Chu
Cc: Jennifer Brandon; nant-developers@lists.sourceforge.net
Subject: Re: [nant-dev] Nant svn export

On 6/10/05, Vincent Chu <[EMAIL PROTECTED]> wrote:
Maybe if you run nant again with debug on (-debug+) and send us the
output, it'd help us pinpoint the problem ?

A few weeks ago a similar problem appeared (it thrown a
NullReferenceException when svn.exe was not available) on the user/dev
list and is now fixed in CVS. I wonder if this is the same problem or
a different one.

Best regards!
Marcin








-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to