Re: [NAnt-users] How to exit a foreach loop

2006-07-22 Thread Michael Craig
Since nobody has answered me on this I've decided to get creative. I'm currently testing this idea, but it seems to work for me.Basically, I set a property within the loop. Once the condition is met where a I want to exit the loop (ie a build is needed), I set the value of ${build.needed} to

[NAnt-users] How do you detect if a property has not been defined?

2006-07-22 Thread Michael Frederick
Uh, I'm a little lost here. Sorry, beginner question. I want to detect if a property has/has notbeen defined and do conditional processing based on whether or not the property exists. Ithought I should do: project name="test"property if="${property::exists(XYZ)}" name="IsItThere"

Re: [NAnt-users] Can't use pipe (|) within exec

2006-07-22 Thread Gary Feldman
Robert Smith wrote: Instead of trying to pipe, would something like this work (with regard to the structure of teh exec task) with each of the aruments as an arg value? exec program=ISCmdBld append=true output=${logfile} verbose=true arg value=-p

Re: [NAnt-users] Can't use pipe (|) within exec

2006-07-22 Thread si
Hi Erin, It's do-able, just a little painful, but I think Martin was on the right track. For example, here's what I do to call the Subversion svnadmin program to dump a repository, redirecting stdout. Works on Windows and Linux: ... target name=init-shell if

[NAnt-users] Output redirect problem

2006-07-22 Thread Cong
Hi,I have a output redirect problem in NAnt.I defined a custom NAnt task. Inside it, I have the following code: TextWriter standardOut = Console.Out; TextWriter standerdError = Console.Error; int exitValue; using (TextWriter newOutWriter = File.CreateText(output), newErrorWriter = newOutWriter) {

[NAnt-users] VC++ Project winth nant...Urgent help needed

2006-07-22 Thread jigar shah
I have a VS 2003 solution which has a VC++ Project in that. What all things i need to run application using nant? Particularly when i give options in cl and try to compile with verbosetrue. It doesn't show any error. I tried to compile using command line but tht gives me errors in standard

[NAnt-users] How do you detect if a property has not been defined?

2006-07-22 Thread Michael Frederick
Uh, I'm a little lost here. Sorry, beginner question. I want to detect if a property has/has notbeen defined and do conditional processing based on whether or not the property exists. Ithought I should do: project name="test"property if="${property::exists(XYZ)}" name="IsItThere"

[NAnt-users] solution project exclude

2006-07-22 Thread Steve Whitley
I have a solution that I need to build that contains web projects. I've excluded them by doing the following: solution configuration=${config} outputdir=${outdir} solutionfile=${solution} failonerror=true verbose=true projects exclude name=path to web project

Re: [NAnt-users] Strange error with C# properties

2006-07-22 Thread Gert Driesen
Andy, Thanks for the additional info, I'll try to look into it tomorrow. Gert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Duan Nguyen Sent: donderdag 20 juli 2006 22:19 To: Gert Driesen; nant-users@lists.sourceforge.net Subject: Re:

Re: [NAnt-users] How do you detect if a property has not been defined?

2006-07-22 Thread Noel Gifford
You need to include XYZ in single quotes because you want to pass the string to the property::exists method and not evaluate the XYZ property. Try: property if=${property::exists(XYZ)} name=IsItThere value=yes/ Noel From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On