> > now that I think about it "*" actually implies that all > targets would > > be run. Maybe a different name would be clearer. In the > ruby language > > the top level object class has a built in method_missing > method thats > > called when an undefined method is called on it. So how about > > target_missing as the 'magic' name rather than "*" ? > > > > And maybe rather a wild or wildcard target we can call it > the missing > > target handler or somthing to that effect. > > > > Ian > > Ian, > > We might actually have something similar to events in build > files, meaning : > > <event name="BuildSuccess"> > .... > </event> > > <event name="UnknownTarget"> > .... > </event> > > I have given this about 2 seconds thought, so don't shoot ;-) > > Not sure I like the "target_missing" name, but as always : > don't expect me to come up with anything better ;-) > > Gert
Gert beat me to posting that events sounds like a good way to deal with this :-) If you're going to define a handler for missing targets, then it would also be nice (and complete) to define handlers for other core events, such as 'invalid property' (-D:test, missing equals sign), or ... some other event. I'm drawing a blank, how many of these kinds of events are there, that it would be useful to catch and deal with in the build file? -- Troy Disclaimer Message: This message contains confidential information and is intended only for the individual(s) named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please immediately delete it and all copies of it from your system, destroy any hard copies of it, and notify the sender. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. To the maximum extent permitted by law, Immersive Technologies Pty. Ltd. does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_idG21&alloc_id040&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users