myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i...@apache.org
Subject svn commit: r399462 - /myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/ResourceLocator.java
Date Wed, 03 May 2006 22:28:07 GMT
Author: idus
Date: Wed May  3 15:28:04 2006
New Revision: 399462

URL: http://svn.apache.org/viewcvs?rev=399462&view=rev
Log:
added support for WebSphere (TOBAGO-64)

Modified:
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/ResourceLocator.java

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/ResourceLocator.java
URL: http://svn.apache.org/viewcvs/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/ResourceLocator.java?rev=399462&r1=399461&r2=399462&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/ResourceLocator.java
(original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/context/ResourceLocator.java
Wed May  3 15:28:04 2006
@@ -121,9 +121,11 @@
         String protocol = themeUrl.getProtocol();
         // tomcat uses jar
         // weblogic uses zip
-        if ("jar".equals(protocol) || "zip".equals(protocol)) {
+        // IBM WebSphere uses wsjar
+        if ("jar".equals(protocol) || "zip".equals(protocol) || "wsjar".equals(protocol))
{
           LOG.info("themeUrl = '" + themeUrl + "'");
-          String fileName = themeUrl.toString().substring(4, themeUrl.toString().indexOf("!"));
+          String fileName = themeUrl.toString().substring(
+              protocol.length() + 1, themeUrl.toString().indexOf("!"));
           ClassLoader classLoader = ResourceManagerFactory.class.getClassLoader();
           URL jarFile;
           try {



Mime
View raw message