]
Gary Ip updated EJB-284:
------------------------
Attachment: SeparatorTest.java
A small Java program that simple prints all files searched from "file:///". It
shows filename are using "\" rather than "/".
Tested with jboss-archive-browsing.jar that comes with HEM 3.3.1.GA.
Scanning for META-INF/orm.xml does not work in Windows environment
due to different in path-separator
-----------------------------------------------------------------------------------------------------
Key: EJB-284
URL:
http://opensource.atlassian.com/projects/hibernate/browse/EJB-284
Project: Hibernate Entity Manager
Issue Type: Bug
Components: EntityManager
Affects Versions: 3.3.1.GA
Environment: Windows XP SP2
Tomcat 5.2.23
Spring 2.0.3
Hibernate Core 3.2.2.GA
Hibernate Annotations 3.3.0.GA
Hibernate EntityManager 3.3.1.GA
Reporter: Gary Ip
Attachments: petclinic.z01, petclinic.zip, SeparatorTest.java
In
org.hibernate.ejb.Ejb3Configuration: line: 606, method scanForXmlFiles(...),
Iterator it = ArchiveBrowser.getBrowser(
jar, new ArchiveBrowser.Filter() {
public boolean accept(String filename) {
return (searchforHBMFiles && filename.endsWith( ".hbm.xml" ) )
|| (searchforORMFiles && filename.endsWith( META_INF_ORM_XML ) )
;
}
}
filename passed in use "/" in *NIX environment, while "\" is used in
Win32 environment. So orm.xml will be ignored in Win32 environment, as it will end with
META-INF\orm.xml and won't be matched.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: