ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <>
Subject Re: JunitReport
Date Sat, 08 Jun 2002 00:08:24 GMT
Yes, you can customize the report easily (if you know XSL) from
<junitreport>.  Simply use the styledir attribute on the <report> element
and provide your own XSL files (see the Ant docs for mandatory file names
that you must use).

As for getting the date/time into them - the best method is probably this:
you have access to Ant properties so you could, prior to running <junit>,
set a property with <tstamp> with the format you want and then output it in
the HTML generated.

As for source code, all Jakarta source code is available via CVS. Here's a
link right to the .junit package that contains all the related code for
<junit> and <junitreport>:

You could even implement your own JUnitResultFormatter and hook it directly
into <junit>/<format> (see docs for details).


----- Original Message -----
From: "John Lindwall" <>
To: "'Ant Users List'" <>
Sent: Friday, June 07, 2002 7:47 PM
Subject: JunitReport

> Ant 1.4.1
> Using JUnitReport can I customize the output at all?  I want the date/time
of the test execution to appear on the main page.
> BTW Where is the source code to this task to be found? Maybe that is the

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message