Hi, * Martin Aliger wrote on 09.07.2004 (08:40): > I think both are cases of inter-task communication. IMO current nant is > totally missing such communication. errorproperty proposal is very limited > implementation of such communication. I'd rather prefer making something > more robust enabling more advanced scenarios like examining what failed or > what was skipped (mainly in complex tasks like <solution>) etc.
Well, there is a workaround: I wrote a stopwatch task (I wanted to know time some tasks are taking). The user must give a name. Based on this name I create a property that I used to save the current timestamp. If not empty, I compare the current timestamp to the saved one (hopefully in the property). The bad in this approach is (IMHO), that the property becomes 'visible' to the outer world in the script. This is not always intended. > Some time ago I propose XML-like based communication - maybe its time comes? > How do you see it now when there was enough time to consider it? I don't like the we-do-anything-in-xml approach. XML is a nice thing, but it certainly adds some overhead to communications. I would prefer an invisible property system based on keys. This would allow to store informations in one task and to read it in another one, without dealing with properties set by the user. I could also imagine a way of making them optionally persistent. This would be a way to provide numerous version tasks a clear way to save / load information from one run to the next without 'proprietary' file formats. > <trycatch> task is also good addition in mine eyes. I personally dont see > anything bad in implementing both - trycatch and some kinf of communication > in the same time. Different scenarios should use different approaches A try catch task can help to make things more clear. I like the idea that something like that arises. -sa -- sa at programmers-world dot com http://www.livingit.de Internet sites: http://www.not2long.net - Make long links short Boomarks online: http://www.mobile-bookmarks.info ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
