Hi All,
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.
Method Two:
The newer method, and due to the fact that ASF projects now provide and
maintain their own rat-excludes file in their svn area, which then gets
referenced in an ant task:
'ant -f /path/to/project-config.xml -lib /path/to/build > ../rat-output.txt'
The project-config.xml contains (as well as the usual antlib -taskdef)
<fileset dir="${src-dir}">
<excludesfile name="${src-dir}/tools/dist/rat-excludes"/>
<exclude name=".buildbot-sourcedata"/>
</fileset>
...
As you can see, method two works well but produces a .txt output.
Question then,
How can I still use method two but get an xml output file like the -x option
in method one gives?
I'd love to get back to producing xml then html reports whilst still being
able to use an excludes file
provided by the project in their svn, or maybe there is another way?
Thanks
Gav...