[macker-developer] XMLReportListener
Brought to you by:
barredijkstra,
melquiades
|
From: Scott S. <ss...@fg...> - 2003-07-01 05:00:53
|
My apologies for not getting to this sooner, but I've been on vacation.
Attached is a patch file containing the changes made to the Macker main
class and the source file for XMLReportListener.
It was a quick hack but it works. Essentially, I had to create and
maintain a BufferedWriter and XMLReportListener outside of the rule set
checking loop in the check method in Macker. I've also added a new
command line parameter -w|--writetofile that will tell Macker to
generate the xml report in a file named macker-report.xml. The output
file can be configured programmatically.
Here's a sample of the XML:
===========================================
<macker-report>
<rule-set name="no domain in swingclient">
</rule-set>
<rule-set name="no PAL in swingclient">
<acess-violation>
<description>Illegal reference
from com.fgm.tracker.swingclient.SearchCriteriaDialog
to com.fgm.pal.QueryCriterion</description>
<from>com.fgm.tracker.swingclient.SearchCriteriaDialog</from>
<to>com.fgm.pal.QueryCriterion</to>
</acess-violation>
<acess-violation>
<description>Illegal reference
from com.fgm.tracker.swingclient.SearchCriterionPanel
to com.fgm.pal.QueryCriterion</description>
<from>com.fgm.tracker.swingclient.SearchCriterionPanel</from>
<to>com.fgm.pal.QueryCriterion</to>
</acess-violation>
</rule-set>
<rule-set name="no domain in domainapi">
</rule-set>
</macker-report>
======================================
Let me know what you think.
Scott
|