Message:
The following issue has been closed.
Resolver: Gavin King
Date: Sun, 15 Jun 2003 10:22 PM
Thanks. I applied this fix.
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-114
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-114
Summary: SchemaExportTask tries to open files as URLs
Type: Patch
Status: Closed
Priority: Major
Resolution: FIXED
Project: Hibernate2
Components:
toolset
Fix Fors:
2.0.1
Versions:
2.0rc2
Assignee: Gavin King
Reporter: Ken Geis
Created: Thu, 29 May 2003 7:20 PM
Updated: Sun, 15 Jun 2003 10:22 PM
Environment: Windows XP, ant
Description:
I was using the SchemaExportTask for Ant in Windows. The input file name started with C:, so the SAXReader interpreted this as a URL with protocol "c." It should not be treated as a URL at all.
In net.sf.hibernate.cfg.Configuration, change the method addFile from
----------------------------------------------------------
log.info("Mapping file: " + xmlFile);
try {
add( XMLHelper.createSAXReader(xmlFile).read(xmlFile) );
}
catch (Exception e) {
-----------------------------------------------------------
to
-----------------------------------------------------------
log.info("Mapping file: " + xmlFile);
try {
add( XMLHelper.createSAXReader(xmlFile).read(new File(xmlFile)) );
}
catch (Exception e) {
-----------------------------------------------------------
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|