[
https://issues.apache.org/jira/browse/JAMES-803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12519229
]
Stefano Bagnara commented on JAMES-803:
---------------------------------------
The main difference (excluding the 2 steps approach) is that for avalon I would
simply use this implementation:
+ public InputStream getResource(String url) throws IOException {
+ return new FileInputStream(getFile(url));
+ }
removing all of the checks for the classpath.
I would leave it to the spring solution as it is more likely to use a different
packaging and a different way to use configurations.
Thank you for the idea!
> Add ability to load resources from the classpath instead of the file system
> ---------------------------------------------------------------------------
>
> Key: JAMES-803
> URL: https://issues.apache.org/jira/browse/JAMES-803
> Project: James
> Issue Type: Improvement
> Components: James Core
> Affects Versions: Trunk
> Reporter: Zsombor
> Assignee: Bernd Fondermann
> Priority: Minor
> Attachments: loading-from-the-classpath-spring.patch,
> loading-from-the-classpath.patch
>
>
> Currently lots of components try to get their configuration files from the
> filesystem, but most of the time it's simpler to get from the classpath.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]