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. > 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. Stefan
