Hi *,
we had a Junit task with an XML formatter defined both on the <junit>
and the <test> level:
<junit
fork="true" dir="${basedir}" haltonfailure="no"
outputtoformatters="no" haltonerror="no" showoutput="no" printsummary="no" >
<classpath refid="..." />
<formatter type="xml" /> <!-- *** HERE ... *** -->
<jvmarg value="-Dlog4j.configuration=file:properties/log4j.properties" />
<test name="@{junitclass}" outfile="..." >
<formatter type="xml"/> <!-- *** AND HERE *** -->
</test>
</junit>
Since Ant 1.9, this resulted in garbled output files:
the end was somehow doubled, sometimes only like this:
like this:
</testsuite>
uite>
but in other situations even 2+ doubled lines appeared:
</testcase>
<system-out><![CDATA[]]></system-out>
<system-err><![CDATA[]]></system-err>
</testsuite>
ut>
<system-err><![CDATA[]]></system-err>
</testsuite>
After removing the second <formatter>, everything was fine again.
Anyone seen this?
Have a nice day,
Berny
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]