[hibernate-issues] [Hibernate-JIRA] Updated: (METAGEN-12) Investigate why it is not possible to use the Filer API to load non class resources like /META-INF/orm.xml

Hardy Ferentschik (JIRA) noreply at atlassian.com
Fri Feb 26 10:08:47 EST 2010


     [ http://opensource.atlassian.com/projects/hibernate/browse/METAGEN-12?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hardy Ferentschik updated METAGEN-12:
-------------------------------------

    Component/s: processor

> Investigate why it is not possible to use the Filer API to load non class resources like /META-INF/orm.xml
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: METAGEN-12
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/METAGEN-12
>             Project: Hibernate StaticMetamodel Generator
>          Issue Type: Improvement
>          Components: processor
>    Affects Versions: 1.0.0-Beta-2
>            Reporter: Hardy Ferentschik
>            Assignee: Hardy Ferentschik
>             Fix For: 1.1.0
>
>
> The API throws a FilerException with the message "Illegal name /META-INF".
> The call in question is:
> {code}
> processingEnv.getFiler().getResource((StandardLocation.CLASS_OUTPUT, "/META-INF", "orm.xml" )
> {code}
> Currently we work around this by using {{Class.getResourceAsStream()}}

-- 
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