I don't know if it makes sense to change all properties - if you want to do that you can include the other build file and call the targets directly. Disadvantage of changing all properties would be that you can't specify properties that you don't want to change. E.g. you might have the same properties in both build files, and in the second build file you change the property, but later on in the first build file you want that property to still have the old value that it had before calling the other build file.
I once wrote a task that extends the NAntTask. It has an additional passbyref attribute (similar to passing a parameter by reference in a programming language). You can specify the names of properties (separated by blanks) of which you want to have the values changed in the calling build file. It overwrites the ExecuteTask() method (unfortunately, it has to duplicate a lot of the code there), and after returning from calling NAnt with the other build file, it sets all the specified properties with the values from the other build file. I'm still working with 0.8.2, so you might have to do some adjustements to be able to build it with 0.8.3. This might even be a useful extension for the NAnt task in general. Hope this helps, Eberhard > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: Monday, August 11, 2003 9:38 AM > To: [EMAIL PROTECTED] > Subject: [nant-dev] Feature request for nant task > > > Hi all, > > I like the "inheritall" flag for the nant task. However, > I would like to see, that properties changed in the called > build file would be reflected back to the caller afterwards. > This way, a called build file would be able to set some kind > of status properties, which can be evaluated by the parent build file. > > If this feature is already implemented, I must have missed it. > > Regards, > Thomas > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites > including Data Reports, E-commerce, Portals, and Forums are > available now. Download today and enter to win an XBOX or > Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet _072303_01/01 _______________________________________________ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
NAntTaskEx.zip
Description: Zip compressed data