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
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
!)
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
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).
Gary Feldman
Sent: 01 June 2005 19:51
To: nant-users@lists.sourceforge.net
Subject: Re: [Nant-users] Forcing a target to fail from
> 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
Wilson, Glenn wrote:
string targetEnv = project.Properties["target.env"];
switch(targetEnv.ToUpper())
{
case "DEV":
project.Properties["deployment.server"]="DevServer";
project.Properties["deployment.physical.path"
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
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
Title: Forcing a target to fail from
10 matches
Mail list logo