FELIX-423: workaround for OBR code - PathFile appears to expects a decoded URI path (ie. with 'file' scheme, but without any encodings, such as %20)

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@596261 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundleplugin/src/main/java/org/apache/felix/bundleplugin/OBRInstall.java b/bundleplugin/src/main/java/org/apache/felix/bundleplugin/OBRInstall.java
index 5276039..05ca396 100644
--- a/bundleplugin/src/main/java/org/apache/felix/bundleplugin/OBRInstall.java
+++ b/bundleplugin/src/main/java/org/apache/felix/bundleplugin/OBRInstall.java
@@ -135,7 +135,8 @@
             uri = file.toURI();
         }
 
-        return new PathFile( uri.toASCIIString() );
+        // PathFile workaround: for now provide decoded strings to maven-obr-plugin
+        return new PathFile( uri.getScheme() + ':' + uri.getSchemeSpecificPart() );
     }
 
     private static String findOBRExtensions( List resources )