[jbosstools-issues] [JBoss JIRA] Updated: (JBIDE-1838) OpenFileActionUtils.getResource() doesn't work properly.

Max Andersen (JIRA) jira-events at lists.jboss.org
Wed Apr 9 06:15:04 EDT 2008


     [ http://jira.jboss.com/jira/browse/JBIDE-1838?page=all ]

Max Andersen updated JBIDE-1838:
--------------------------------

    Fix Version/s: 2.1.0.beta1
                       (was: 2.1)

> 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.0.beta1
>
>
> 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