PR: MPHIBERNATE-2, 3

fix classloader issues


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115045 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
brett
2004-04-25 02:29:43 +00:00
parent 271947f8a3
commit 1bb6adb656
3 changed files with 7 additions and 3 deletions

View File

@@ -23,7 +23,7 @@
<pomVersion>3</pomVersion>
<id>maven-hibernate-plugin</id>
<name>Maven Hibernate Plug-in</name>
<currentVersion>1.0</currentVersion>
<currentVersion>1.1-SNAPSHOT</currentVersion>
<description/>
<shortDescription>Work with Hibernate classes</shortDescription>
<url>http://maven.apache.org/reference/plugins/hibernate/</url>

View File

@@ -41,7 +41,7 @@ import org.apache.tools.ant.DirectoryScanner;
*
*
* @author <a href="michal.maczka@dimatics.com">Michal Maczka</a>
* @version $Id: SchemaExportBean.java,v 1.3 2004/03/02 15:04:01 evenisse Exp $
* @version $Id: SchemaExportBean.java,v 1.4 2004/04/25 02:29:43 brett Exp $
*/
public class SchemaExportBean
{
@@ -241,7 +241,7 @@ public class SchemaExportBean
URL[] urls = { baseDirFile.toURL()};
System.out.println(urls[0]);
URLClassLoader newClassLoader =
new URLClassLoader(urls, oldClassLoader);
new URLClassLoader(urls, getClass().getClassLoader());
currentThread.setContextClassLoader(newClassLoader);
Configuration cfg = getConfiguration();
SchemaExport schemaExport = getSchemaExport(cfg);

View File

@@ -24,6 +24,10 @@
<author email="michal.maczka@dimatics.com">Michal Maczka</author>
</properties>
<body>
<release version="1.1-SNAPSHOT" date="in CVS">
<action dev="brett" type="fix" issue="MPHIBERNATE-2">Fix class not found exception by using correct base class loader.</action>
</release>
<release version="1.0" date="2004-03-11">
<action dev="k8n" type="update">Update to hibernate-2.0.3. Add delimiter property to schema-export tag</action>
<action dev="dion" type="update">update to commons-jelly-20030902.160215</action>