struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From musa...@apache.org
Subject svn commit: r660541 - /struts/sandbox/trunk/struts2-convention-plugin/src/main/java/org/apache/struts2/convention/AbstractClassLoaderResolver.java
Date Tue, 27 May 2008 14:48:46 GMT
Author: musachy
Date: Tue May 27 07:48:43 2008
New Revision: 660541

URL: http://svn.apache.org/viewvc?rev=660541&view=rev
Log:
Fix for baseUrlSpec when the result paths is "/"

Modified:
    struts/sandbox/trunk/struts2-convention-plugin/src/main/java/org/apache/struts2/convention/AbstractClassLoaderResolver.java

Modified: struts/sandbox/trunk/struts2-convention-plugin/src/main/java/org/apache/struts2/convention/AbstractClassLoaderResolver.java
URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-convention-plugin/src/main/java/org/apache/struts2/convention/AbstractClassLoaderResolver.java?rev=660541&r1=660540&r2=660541&view=diff
==============================================================================
--- struts/sandbox/trunk/struts2-convention-plugin/src/main/java/org/apache/struts2/convention/AbstractClassLoaderResolver.java
(original)
+++ struts/sandbox/trunk/struts2-convention-plugin/src/main/java/org/apache/struts2/convention/AbstractClassLoaderResolver.java
Tue May 27 07:48:43 2008
@@ -266,7 +266,7 @@
         for (URL url : urls) {
             try {
                 String urlStr = url.toString();
-                String baseURLSpec = urlStr.substring(0, urlStr.indexOf(dirName));
+                String baseURLSpec = StringTools.isTrimmedEmpty(dirName) ? urlStr : urlStr.substring(0,
urlStr.indexOf(dirName));
                 String urlPath = urlToFilePath(test, url);
 
                 File file = new File(urlPath);



Mime
View raw message