> -----Original Message----- > From: Stefan Bodewig [mailto:[email protected]] > Sent: Wednesday, 26 May 2010 9:57 PM > To: [email protected] > Subject: Re: xml output from ant task > > On 2010-05-22, Gav... wrote: > > > Currently I'm using two methods to get RAT reports, and publish > results on > > ci.apache.org/projects/ > > > Method One: > > > 'java -jar apache-rat-$version.jar -x -e somedir somefile.name -d > > /path/to/build > ../rat-output.xml' > > > The above creates a nice xml report which I then convert to html > report with > > Saxon. Works great. > > In theory the CLI should be able to perform the XSLT transformation for > you in one go - this is how it creates the plain text output after all. > Internally RAT only creates XML and does a transformation when asked > for > a plain text output. If you are interested, we can probably add an > --xsl option or something close.
That sounds like a great plan, but no rush. I would still need to use Saxon I think to pull in all xml outputs of multiple projects to create the html table in the summary view. (http://ci.apache.org/projects/rat-master-summary.html) > > > How can I still use method two but get an xml output file like the -x > > option in method one gives? > > This is now possible with trunk if you use format="xml" on the task. > BTW, it is probably better to use the task's reportfile attribute > rather > than redirecting Ant's output. > > The new format attribute accepts "plain" (the default), "xml" and > "styled". If you use "styled" you must also add a stylesheet attribute > pointing at an XSLT stylesheet that will be used to create the output > from RAT's XML output internally. > This is fantastic, thank you, I'll try it all out today! Gav... > Stefan
