[ 
https://issues.apache.org/jira/browse/DELTASPIKE-222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13408740#comment-13408740
 ] 

Thomas Herzog commented on DELTASPIKE-222:
------------------------------------------

The possibilty for setting the property path via MessageBundle sounds nice, i 
took cal10n as example, they define it via @BasePath.
An own custom resolver, only because the path of the property file is 
different, would be overhead for me, because a default implementation of a 
MessageResoulver would be suitable for mor than 50% of the usecase, i think. We 
do not have many special usecases where it is different to get the localized 
message. 
I would do no error handling if property was nout found, this should result in 
an exception, because at least at deployment time, it should be sure that there 
is every key defined in @MessageBunfdl annotated type present in the property 
files, otherwise the application should not be deployable.

An maven or ant taks to check for consistency of the property files would also 
be fine.
                
> Add possibility to set base path
> --------------------------------
>
>                 Key: DELTASPIKE-222
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-222
>             Project: DeltaSpike
>          Issue Type: New Feature
>          Components: I18n-Module
>    Affects Versions: 0.2-incubating
>            Reporter: Thomas Herzog
>             Fix For: 0.3-incubating
>
>
> Add the possibility to set the base path, means the path to the properties 
> file.
> Now they are assumed to be at same level as the @MessageResource annotated 
> interface is, in fact within the same package.
> Maybe someone wants to put his resource bundles at 
> /META-INF/resources/*.properties.
> With cal10n it was possible to set the Base with @Base("/META-INF/resources")

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to