Hi Mark,

 

I've never used SVN myself, but have you tried the <svn-update> task in
NAnt-contrib?  Might be easier that <exec>.

 

http://nantcontrib.sourceforge.net/release/latest/help/tasks/svn-update.html

 

HTH,

 

Bill

 

 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Modrall
Sent: 21 January 2007 19:54
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] <exec> and <regex>

 

Hi.

 

I'm new to nant, and I'm trying to port some java/ant tasks we'd done to it.
Since we use svn as our source control, I'm having to do the update with
exec.  To get the revision updated to, I'm sifting through the svn output.
Under ant, I redirected the svn output to a property using a filterchain and
then looked for certain patterns (turns out to be in the last line).

 

Just stumbling along here, it seems that I have to direct the svn output to
a file in nant, then use loadfile to get it into a property then use a
<regex> on the whole thing.  Is that the best way to do it?

 

I was having the damnedest time getting it to deal with the fact that the
property now had multiple lines in it when the regex was applied.  I put
options="Multiline" but it still couldn't find anything if I had $ in the
pattern.  That seems more of a C# pattern issue, but I thought I'd ask about
the general approach.

 

Thanks

-Mark

 

 

This e-mail message, and any attachments, is intended only for the use of
the individual or entity identified in the alias address of this message and
may contain information that is confidential, privileged and subject to
legal restrictions and penalties regarding its unauthorized disclosure and
use. Any unauthorized review, copying, disclosure, use or distribution is
strictly prohibited. If you have received this e-mail message in error,
please notify the sender immediately by reply e-mail and delete this
message, and any attachments, from your system. Thank you. 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to