> -----Original Message-----
> From: Stefan Bodewig [mailto:[email protected]]
> Sent: Friday, 28 May 2010 1:36 AM
> To: [email protected]
> Subject: Re: xml output from ant task
> 
> On 2010-05-27, Gav... wrote:
> 
> >> From: Stefan Bodewig [mailto:[email protected]]
> >> 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.
> 
> I see.  If you really need Saxon - because of XPath or XSLT 2.0 or just
> because the XSLT implementation shipping as part of the JRE sucks -
> you'd have to fiddle with the endorsed library stuff on top of that.
> In
> the end it may be easier to just have RAT create XML.

I use Saxon because it's the only way I know how to do this. Projects
builds and RAT reports are spread out over a number of slave machines.
After the report is run the rat-report.xml is then copied to the master
machine where saxon uses an xslt to then produce the html for each and
also the combined html rat summary report.

Anyway, that part is now working great.

> 
> > (http://ci.apache.org/projects/rat-master-summary.html)
> 
> Is there any way to have that page gather input from sources other than
> buildbot?  Say I wanted to have RAT reports on a bunch of code bases
> but
> don't need a full buildbot configuration because I already have CI
> builds in place (or don't care).

We need a rat-report.xml file so that it can be pulled into the page. If
that
file is available publically I guess we can use curl or something to grab
it, 
but that is assuming you are already running RAT reports and that you are
producing xml output.

It does not matter to me whether or not projects are using other CI builds
elsewhere for running their tests. They are welcome to and I encourage the
use of using Buildbot purely for RAT reports if that's all they want to use
it for. Then it is automatic that the results will also be displayed in the
master-rat-summary table (with a link to their individual html report)


> 
> >>> 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.
> 
> > This is fantastic, thank you, I'll try it all out today!
> 
> Let me know how things work out.

It worked out great. Now I have projects using rat-excludes files and I have
xml
output that I needed to create the html views and added them to 

http://ci.apache.org/projects/rat-master-summary.html

page.

Thanks again

Gav...

> 
> Stefan


Reply via email to