commit | 7f24ae7ea8fa7a5e1f45519bb398e9bdd7f505ea | [log] [tgz] |
---|---|---|
author | Stuart McCulloch <mcculls@apache.org> | Sat Aug 02 16:50:31 2008 +0000 |
committer | Stuart McCulloch <mcculls@apache.org> | Sat Aug 02 16:50:31 2008 +0000 |
tree | ea91cd0f4c0c0272028d70967d12de422e7abbb7 | |
parent | 5f2843b4d52d145e0f64e1dbe4dfd16d02c8af71 [diff] |
FELIX-553: actually safer to always use scheme specific part here git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@682011 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundleplugin/src/main/java/org/apache/felix/obrplugin/ObrDeploy.java b/bundleplugin/src/main/java/org/apache/felix/obrplugin/ObrDeploy.java index c26d826..a0fb276 100644 --- a/bundleplugin/src/main/java/org/apache/felix/obrplugin/ObrDeploy.java +++ b/bundleplugin/src/main/java/org/apache/felix/obrplugin/ObrDeploy.java
@@ -179,8 +179,7 @@ } URI tempURI = ObrUtils.findRepositoryXml( "", remoteOBR ); - String repositoryPath = tempURI.isOpaque() ? tempURI.getSchemeSpecificPart() : tempURI.getPath(); - String repositoryName = new File( repositoryPath ).getName(); + String repositoryName = new File( tempURI.getSchemeSpecificPart() ).getName(); Log log = getLog(); ObrUpdate update;
diff --git a/bundleplugin/src/main/java/org/apache/felix/obrplugin/ObrDeployFile.java b/bundleplugin/src/main/java/org/apache/felix/obrplugin/ObrDeployFile.java index 88816d8..ae3e07b 100644 --- a/bundleplugin/src/main/java/org/apache/felix/obrplugin/ObrDeployFile.java +++ b/bundleplugin/src/main/java/org/apache/felix/obrplugin/ObrDeployFile.java
@@ -146,8 +146,7 @@ } URI tempURI = ObrUtils.findRepositoryXml( "", remoteOBR ); - String repositoryPath = tempURI.isOpaque() ? tempURI.getSchemeSpecificPart() : tempURI.getPath(); - String repositoryName = new File( repositoryPath ).getName(); + String repositoryName = new File( tempURI.getSchemeSpecificPart() ).getName(); Log log = getLog(); ObrUpdate update;