felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From db...@apache.org
Subject svn commit: r819896 - /felix/trunk/sigil/common/obr/src/org/apache/felix/sigil/obr/OBRRepositoryProvider.java
Date Tue, 29 Sep 2009 12:11:57 GMT
Author: dbaum
Date: Tue Sep 29 12:11:56 2009
New Revision: 819896

URL: http://svn.apache.org/viewvc?rev=819896&view=rev
Log:
allow OBR repository url to be native filesystem path

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=819896&r1=819895&r2=819896&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
Tue Sep 29 12:11:56 2009
@@ -42,7 +42,8 @@
 
         try
         {
-            URL repositoryURL = new URL(urlStr);
+            File urlFile = new File(urlStr);
+            URL repositoryURL = urlFile.exists() ? urlFile.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