Re: [Nant-users] Forcing a target to fail from

2005-06-02 Thread Gary Feldman
Foster, Richard - PAL wrote: Gary, Presumably with option 4 you could also do something like this I.e. there would be a config.[whatever] file. (NOTE: I forced the file name to lower case instead of upper just because I think config.dev looks better as a filena

Re: [Nant-users] Forcing a target to fail from

2005-06-02 Thread Ashley Moran
Choose whichever one you think most appropriate. Personally, I'm fond of 3 for most cases. Just try to design it with the goal of being maintained by some junior build engineer who may not know much more than JavaScript. I've only caught the tail end of this thread so I haven't missed the p

RE: [Nant-users] Forcing a target to fail from

2005-06-02 Thread Foster, Richard - PAL
!) Regards, Richard -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gary Feldman Sent: Thursday, June 02, 2005 09:13 To: nant-users@lists.sourceforge.net Subject: Re: [Nant-users] Forcing a target to fail from

Re: [Nant-users] Forcing a target to fail from

2005-06-02 Thread Gary Feldman
Wilson, Glenn wrote: Hi Gary, This is indeed the entire script. I wasn't sure how to perform this same functionality using pure Nant, so I would be grateful for any pointers. I took what I believed to be the easiest option from a coding perspective (I am a .NET developer first and foremost).

RE: [Nant-users] Forcing a target to fail from

2005-06-02 Thread Wilson, Glenn
Gary Feldman Sent: 01 June 2005 19:51 To: nant-users@lists.sourceforge.net Subject: Re: [Nant-users] Forcing a target to fail from

Re: [Nant-users] Forcing a target to fail from

2005-06-01 Thread Troy Laurin
> The question has already been answered, but I'm curious. Is this the > entire script? Everything you do here can be done within pure NAnt. > Personally, I prefer to avoid dropping into scripts, because one never > knows who will be maintaining the build file in the future. > > Gary I would gu

Re: [Nant-users] Forcing a target to fail from

2005-06-01 Thread Gary Feldman
Wilson, Glenn wrote: string targetEnv = project.Properties["target.env"]; switch(targetEnv.ToUpper()) { case "DEV": project.Properties["deployment.server"]="DevServer"; project.Properties["deployment.physical.path"

RE: [Nant-users] Forcing a target to fail from

2005-06-01 Thread Wilson, Glenn
thy business or it will drive thee. Benjamin Franklin (1706-1790) -Original Message- From: Thibaut Barrère [mailto:[EMAIL PROTECTED] Sent: 01 June 2005 16:45 To: Wilson, Glenn Cc: nant-users@lists.sourceforge.net Subject: Re: [Nant-users] Forcing a target to fail from

Re: [Nant-users] Forcing a target to fail from

2005-06-01 Thread Thibaut Barrère
Hi Glenn, try to throw a BuildException (NAnt.Core.BuildException). I'm doing this inside custom nant tasks to have the build fail, I suppose it should work just the same under a script block. kind regards Thibaut 2005/6/1, Wilson, Glenn <[EMAIL PROTECTED]>: > > > Hi, > > I have a target

[Nant-users] Forcing a target to fail from

2005-06-01 Thread Wilson, Glenn
Title: Forcing a target to fail from