Revision: 1216
          http://stripes.svn.sourceforge.net/stripes/?rev=1216&view=rev
Author:   bengunter
Date:     2009-11-04 15:51:39 +0000 (Wed, 04 Nov 2009)

Log Message:
-----------
STS-723: Per Bob Schellink's suggestion, account for possibly URL-encoded file 
names when searching for JARs.

Modified Paths:
--------------
    branches/1.5.x/stripes/src/net/sourceforge/stripes/util/ResolverUtil.java

Modified: 
branches/1.5.x/stripes/src/net/sourceforge/stripes/util/ResolverUtil.java
===================================================================
--- branches/1.5.x/stripes/src/net/sourceforge/stripes/util/ResolverUtil.java   
2009-11-03 20:24:45 UTC (rev 1215)
+++ branches/1.5.x/stripes/src/net/sourceforge/stripes/util/ResolverUtil.java   
2009-11-04 15:51:39 UTC (rev 1216)
@@ -424,6 +424,12 @@
                 log.trace("Not a JAR: ", jarUrl);
                 jarUrl.replace(0, jarUrl.length(), testUrl.getFile());
                 File file = new File(jarUrl.toString());
+
+                // File name might be URL-encoded
+                if (!file.exists()) {
+                    file = new File(StringUtil.urlDecode(jarUrl.toString()));
+                }
+
                 if (file.exists()) {
                     log.trace("Trying real file: ", file.getAbsolutePath());
                     testUrl = file.toURI().toURL();


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to