Environment:
Hibernate 3.0.5, HibernateExt checked out on 9 Jun, 05 (3.0alpha4), jdk 1.5.0_03, Oracle 10g.
I tried to create an issue on JIRA on Hibernate Extensions, but that resulted in a form error (exception!).
The HibernateToolTask class uses features of Ant which is not available in the version of Ant shipped with the latest release of Maven (Ant 1.5.3).
A simple change fixes this problem. Here's a diff on HibernateToolTask 1.5:
diff -r1.5 HibernateToolTask.java
106,108c106,109
< AntClassLoader loader = project.createClassLoader(classPath);
< try {
< loader.setParent(project.getCoreLoader());
---
> //AntClassLoader loader = project.createClassLoader(classPath);
> AntClassLoader loader = new AntClassLoader(project, classPath);
> try {
> // loader.setParent(project.getCoreLoader());
|