-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: hbm2java ant task will not work with maven (with fix)
PostPosted: Fri Jun 10, 2005 1:26 pm 
Newbie

Joined: Fri Apr 23, 2004 4:18 pm
Posts: 15
Location: Oslo, Norway
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());


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 10, 2005 2:40 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
and at the same time you asked Maven to fix their ant version, right ? ;)

i've sent a support request to atlassian to try and fix the jira issue - please put the fix there once it is up again.

-max

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.