On 5/27/05, Sandeep <[EMAIL PROTECTED]> wrote: > Does anyone have idea on how I can achieve that? I don't think I can use > <xmlpeek> for adding the directive in the xml log file. Another issue is > that if I try to modify the file from NAnt itself, the file may be locked.
One way I can think of is to create a custom listener, extending (or based on the source for, if extension isn't feasible) the existing XML listener, which includes the stylesheet declaration. On the other hand, I personally think that this is a good enough idea to include into the existing XmlLogger... Having a quick look through the documentation on listeners, I'm not sure what the best way to parameterise this would be - while possible to pass in a -D parameter to indicate the stylesheet location, it might be nice to have a listener-specific mechanism to avoid polluting the property space. If you need something now, I'd probably look at the custom listener. If that's not a realistic option, then you may need to wrap your NAnt invocation inside another script (NAnt or other) which modifies the log file after the "business" script finishes and the log is written. -- Troy ------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 _______________________________________________ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users