[jbosstools-issues] [JBoss JIRA] Created: (JBIDE-1838) OpenFileActionUtils.getResource() doesn't work properly.
Dima Geraskov (JIRA)
jira-events at lists.jboss.org
Tue Mar 4 04:23:12 EST 2008
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: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list