[hibernate-issues] [Hibernate-JIRA] Created: (EJB-284) Scanning for META-INF/orm.xml does not work in Windows environment due to different in path-separator

Gary Ip (JIRA) noreply at atlassian.com
Sun Apr 1 23:16:04 EDT 2007


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


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: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list