You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Apache Wiki <wi...@apache.org> on 2010/07/09 14:32:10 UTC
[Tapestry Wiki] Update of "Tapestry5HowToReadSymbolsFromPropertiesFile" by DanielCaldeweyher
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for change notification.
The "Tapestry5HowToReadSymbolsFromPropertiesFile" page has been changed by DanielCaldeweyher.
The comment on this change is: updated PropertiesFileSymbolProvider code to allow for reading properties files under WEB-INF/classes (e.g. copied form src/main/resources/).
http://wiki.apache.org/tapestry/Tapestry5HowToReadSymbolsFromPropertiesFile?action=diff&rev1=8&rev2=9
--------------------------------------------------
if (classPath)
{
+ in = this.getClass().getClassLoader().getResourceAsStream(resourceName);
+ if(in == null) {
+ in = ClassLoader.getSystemResourceAsStream(resourceName);
+ }
in = ClassLoader.getSystemResourceAsStream(resourceName);
// ClassLoader.getSystemResourceAsStream() returns null if
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org