Mitch, If anything, I would think that the xpath expression language would be a good start. I'm not sure if I would want an expression language included with nant though. This could however be an addin, or extension. Adding expressions (as we have discussed before) seems to me to be just one more complicating feature for NAnt. I would like to think we will target simple and stable for the first release.
But hey, I'm open to ideas like this. There are plenty of places where a feature like this would be cool, but then again, there are other ways to do this too. I wouldn't want there to be too many ways to peel this onion :) Good ideas Mitch, keep them coming. I think your idea of defining this feature more is important before we want to allow, or even be ready to see, a patch for this. Here is an interesting discussion about this exact topic: http://www.mail-archive.com/[EMAIL PROTECTED]/msg00631.html If I remember correctly Gerry actually did work on implementing this. ----- Original Message ----- From: "Mitch Denny" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 27, 2003 1:23 PM Subject: [nant-dev] Expression Support > Hi folks, > > I'm wondering if anyone has looked into building expression support into > NAnt. For example, it would be cool to be able to do this: > > <echo message="Hello World!" unless="mood == 'bad'" /> > > I've been doing some digging and it looks like the path of least > resistance for implementing something like this would be around the > ExpandProperties method of the PropertyDictionary - so before the > validators kick in, because they would reject an expression like this, > so it needs to be evaluated before then. > > All I need now is a good pattern for expression parsing and evaluation > :) ------------------------------------------------------- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ _______________________________________________ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers