Reputation: 2129
We are using Ant's Junitreport to create result of runing Junit. The code is like this:
<target name="report.html">
<junitreport todir="${test.reports}">
<fileset dir="${test.reports}">
<include name="TEST-*.xml" />
</fileset>
<report todir="${test.reports}" />
</junitreport>
</target>
The problem is that it is not working properly with Java. The first time when we upgraded Java to Java 7 it stopped working! Now I upgraded Java to Java 1.7.05 and changed it to 64 bits version instead of 32. It stopped working again. I ma getting a transformation error like this: Errors while applying transformations: Fatal error during transformation
Two question:
Upvotes: 0
Views: 1443
Reputation: 1
change the versions of java and Ant.. check http://www.duncanjauncey.com/blog/archives/41
Upvotes: 0
Reputation: 61695
This looks like a problem with ant 1.8.2 and lower. It seems to be the same bug(s) that caused these problems:
<junitreport> broken on JDK 7 when a SecurityManager is set
<xslt> with redirect broken on JDK 7 when a SecurityManager is set
There seems to be a problem with using ant from within Eclipse and NetBeans.
<junitreport> broken inside IDE on JDK 7
Ant build fails in junitreport using Java 6u32 or later
Try using a newer version of ant, such as 1.8.3 or even better 1.8.4.
Upvotes: 1
Reputation: 18459
It is not really related to Java version. Did your tests fail when you switched to new platform?
The ant task uses xslt processing on xml. If it has some very large strings in error, it may give the error some what like what you wrote.
Upvotes: 0