Hi,
I like to change the junit report title. As per this page
http://jimbarritt.com/non-random/2009/06/10/change-the-title-of-ant-junit-report/
you can do that in ant-junit1.7 onwards
<junitreport todir="${junit.report.html.dir}">
<fileset dir="${junit.report.xml.dir}">
<include name="*.xml"/>
</fileset>
<report format="frames" todir="${junit.report.html.dir}">
<param name="TITLE" expression="${junit.configuration} test
results." />
</report>
</junitreport>
I like to know what is the equivalent groovy syntax for that
ant.taskdef(name: 'junitreport2',
classname:
'org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator',
classpath: configurations.antJunit.asPath)
ant.junitreport2(todir: testReportDir) {
fileset dir: testResultsDir, includes: "TEST-*.xml"
report (todir: testReportDir, styledir:
"src/test/resources/style", format: "frames") {
param name :"TITLE" ,
expression="${envVariables["BUILD_NUMBER"]} test results."}
}
Complains saying report doesn't allow nested parameters.
Thanks
Haneef
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email