You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@click.apache.org by sa...@apache.org on 2009/10/23 00:18:03 UTC
svn commit: r828873 -
/incubator/click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java
Author: sabob
Date: Thu Oct 22 22:18:02 2009
New Revision: 828873
URL: http://svn.apache.org/viewvc?rev=828873&view=rev
Log:
added note about looking up resources from different app servers
Modified:
incubator/click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java
Modified: incubator/click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java?rev=828873&r1=828872&r2=828873&view=diff
==============================================================================
--- incubator/click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java (original)
+++ incubator/click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java Thu Oct 22 22:18:02 2009
@@ -1268,6 +1268,9 @@
// Find all jars and directories on the classpath that contains the
// directory "META-INF/resources/", and deploy those resources
String resourceDirectory = "META-INF/resources/";
+
+ // TODO: finding resources in jars and META-INF/classes might not always
+ // work on all servers. Might need to strip the final '/' from resourceDirectory
Enumeration<URL> en = classLoader.getResources(resourceDirectory);
while (en.hasMoreElements()) {
URL url = en.nextElement();