felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dsav...@apache.org
Subject svn commit: r980357 - /felix/trunk/sigil/common/obr/src/org/apache/felix/sigil/obr/OBRRepositoryProvider.java
Date Thu, 29 Jul 2010 08:27:31 GMT
Author: dsavage
Date: Thu Jul 29 08:27:31 2010
New Revision: 980357

URL: http://svn.apache.org/viewvc?rev=980357&view=rev
Log:
use toURI().toURL() to avoid windows file conversion bugs

Modified:
    felix/trunk/sigil/common/obr/src/org/apache/felix/sigil/obr/OBRRepositoryProvider.java

Modified: felix/trunk/sigil/common/obr/src/org/apache/felix/sigil/obr/OBRRepositoryProvider.java
URL: http://svn.apache.org/viewvc/felix/trunk/sigil/common/obr/src/org/apache/felix/sigil/obr/OBRRepositoryProvider.java?rev=980357&r1=980356&r2=980357&view=diff
==============================================================================
--- felix/trunk/sigil/common/obr/src/org/apache/felix/sigil/obr/OBRRepositoryProvider.java
(original)
+++ felix/trunk/sigil/common/obr/src/org/apache/felix/sigil/obr/OBRRepositoryProvider.java
Thu Jul 29 08:27:31 2010
@@ -43,8 +43,8 @@ public class OBRRepositoryProvider imple
         try
         {
             File urlFile = new File(urlStr);
-            URL repositoryURL = urlFile.exists() ? urlFile.toURL() : new URL(urlStr);
-            URL testURL = urlFile.exists() ? urlFile.toURL() : new URL(urlStr);
+            URL repositoryURL = urlFile.exists() ? urlFile.toURI().toURL() : new URL(urlStr);
+            URL testURL = urlFile.exists() ? urlFile.toURI().toURL() : new URL(urlStr);
             File indexCache = new File(preferences.getProperty("index"));
             File localCache = new File(preferences.getProperty("cache"));
             String auth = preferences.getProperty("auth");



Mime
View raw message