salimma wrote:
christian wrote:
Because this might not be clear: This happens because the Ant distribution and default install is broken. It has been in their FAQ for years. How is that for "inspiring confidence"?
Very scary indeed (what's their claimed reason for not fixing it, I wonder?). Unfortunately, removing ant-junit.jar and ant-antlr.jar does not work (I still get the same compile errors). I also tried using build.sh, that uses the ant jar that HIbernate ships with, and now get this error instead, with both './build.sh eg' and './build.sh junitreport':
The readme.txt bundled in the distribution does not mention the ant bug, by the way
Apache's packaging of ant 1.6.5 works just fine for 'ant junitreport', actually (there are changes in 1.7.0, it turns out, that makes it not backward compatible).
I did not even have to replace ant-junit and ant-antlr ! Unfortunately, 'ant eg' still fails - it seems that the classpath is not set properly in the build.xml, because ant complaint that it could not find definitions for all the org.hibernate classes?