Bruggeman, M. (Margriet) wrote:

Is it possible to make a nant task where you can merge the results of fxcop (which are stored in a separate file) in the buildresult.xml file from nant?

You could use a <style> task to merge them after the fact. I don't know of any existing task that would embed FxCop XML output in NAnt's XML output file, though it wouldn't be too hard to write a custom task to do this. Presumably just echoing it would result in the FxCop XML being quoted. Another option would be to use a <style> task to put the FxCop output into XHTML or even plain text, and then embed that in the NAnt output using <echo>. This wouldn't be as flexible, but I can imagine it being useful in some circumstances.

But are you sure you really want to? Large XML files tend to slow things down; keeping things separate is faster and easier to manage. Even worse, there are likely to be a variety of style sheets or other tools available on the web designed for one or the other, but which may not work with the combination out of the box. Sure, you could tweak them, but is it worth the trouble? What value do you get from combining them?

Gary




-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to