portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From woon...@apache.org
Subject svn commit: r725050 - /portals/jetspeed-2/portal/trunk/components/jetspeed-page-manager/src/test/java/org/apache/jetspeed/page/cache/TestDatabasePageManagerCache.java
Date Wed, 10 Dec 2008 10:18:54 GMT
Author: woonsan
Date: Wed Dec 10 02:18:54 2008
New Revision: 725050

URL: http://svn.apache.org/viewvc?rev=725050&view=rev
Log:
small fix for Windows.

Modified:
    portals/jetspeed-2/portal/trunk/components/jetspeed-page-manager/src/test/java/org/apache/jetspeed/page/cache/TestDatabasePageManagerCache.java

Modified: portals/jetspeed-2/portal/trunk/components/jetspeed-page-manager/src/test/java/org/apache/jetspeed/page/cache/TestDatabasePageManagerCache.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/components/jetspeed-page-manager/src/test/java/org/apache/jetspeed/page/cache/TestDatabasePageManagerCache.java?rev=725050&r1=725049&r2=725050&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/components/jetspeed-page-manager/src/test/java/org/apache/jetspeed/page/cache/TestDatabasePageManagerCache.java
(original)
+++ portals/jetspeed-2/portal/trunk/components/jetspeed-page-manager/src/test/java/org/apache/jetspeed/page/cache/TestDatabasePageManagerCache.java
Wed Dec 10 02:18:54 2008
@@ -546,11 +546,7 @@
         for (final URL pathURL : urlLoader.getURLs())
         {
             // convert path URL to file path
-            String path = pathURL.getPath().replace("/", fileSeparator);
-            if (path.endsWith(fileSeparator))
-            {
-                path = path.substring(0, path.length()-fileSeparator.length());
-            }
+            String path = new File(pathURL.toURI()).getCanonicalPath();
 
             // build class path
             if (classPathBuilder.length() > 0)



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message