]
Max Andersen reopened JBIDE-1838:
---------------------------------
OpenFileActionUtils.getResource() doesn't work properly.
--------------------------------------------------------
Key: JBIDE-1838
URL:
http://jira.jboss.com/jira/browse/JBIDE-1838
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Hibernate
Reporter: Dima Geraskov
Assigned To: Dima Geraskov
Fix For: 2.1
org.hibernate.eclipse.console.actions.OpenFileActionUtils.getResource() works properly
only when hibernate.cfg.xml is in src folder.
It tries to find mapping file as:
ResourcesPlugin.getWorkspace().getRoot().getFileForLocation(new
Path(configXMLFile.getParent()).append(file.getValue()));
file.getValue() returns something like this "mapping/array/A.hbm.xml" and this
path is not relative from the configXMLFile location, but relative from the root of
classpath.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: