> ----- Original Message ----- 
> From: "John Ludlow" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, July 29, 2004 5:37 PM
> Subject: [Nant-users] RE: Conditional arguments in <exec>
>

> > Currently, the only way (AFAIK) to do what you want is to
> > duplicate the
> > exec task and surround it with guarding if/ifnot statements:
>
> Eeewww...  Ok, I might do that.
>
> > I think this is because the xml parser isn't a validating parser, but
> > the exec task doesn't have the required structure to store the /if/arg
> > structure.  I'm not sure I like this in principle... it would
> > be nice to
> > at least have a 'strict' switch, which would use a stricter parser.
>
> I think in a perfect world then this should work (i.e, the <if> tag could
be used in this way), but if not then at least it should tell you that it
won't work.

I have changes queued up locally that will do just that. I just need more
time to finish it up.

Once these changes are finished, NAnt will always operate in strict mode ...

> > What would be nice is a patch to exec's arg elements to delay
> > expansion
> > of properties in the same fashion as property's value attribute.  It
> > shouldn't be a difficult patch... if people are interested in this
> > change, and I don't get indication that it's a bad idea, I'll have a
> > look at it and submit a patch later today or tomorrow.
>
> That would be very nice.  Thing is, would this just apply to <exec>,
because I'm not sure if the same issue would appear in other tasks as well.

Not sure its a good idea, it might just confuse users more ...

Gert


-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to