Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Arthorne2009-04-21 21:35:59 +0000
committerJohn Arthorne2009-04-21 21:35:59 +0000
commit4a1482dae986b726b16edfdff87f697fed548ce0 (patch)
treecba9a5332b9abc584c3f9b4f6679c8d2f066140e /bundles/org.eclipse.equinox.p2.touchpoint.eclipse
parent7359249400c88ed44755c85755e8ff541bb7ee92 (diff)
downloadrt.equinox.p2-4a1482dae986b726b16edfdff87f697fed548ce0.tar.gz
rt.equinox.p2-4a1482dae986b726b16edfdff87f697fed548ce0.tar.xz
rt.equinox.p2-4a1482dae986b726b16edfdff87f697fed548ce0.zip
Bug 272743 PlatformConfigurationWrapper not correctly handling spaces in paths
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.touchpoint.eclipse')
-rw-r--r--bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/PlatformConfigurationWrapper.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/PlatformConfigurationWrapper.java b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/PlatformConfigurationWrapper.java
index 0336efd29..4078816f0 100644
--- a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/PlatformConfigurationWrapper.java
+++ b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/PlatformConfigurationWrapper.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2008 IBM Corporation and others.
+ * Copyright (c) 2007, 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -15,6 +15,7 @@ import java.net.*;
import java.util.Iterator;
import java.util.List;
import org.eclipse.core.runtime.*;
+import org.eclipse.equinox.internal.p2.core.helpers.URLUtil;
import org.eclipse.equinox.internal.p2.update.*;
import org.eclipse.equinox.internal.provisional.frameworkadmin.BundleInfo;
import org.eclipse.equinox.internal.provisional.frameworkadmin.Manipulator;
@@ -137,12 +138,12 @@ public class PlatformConfigurationWrapper {
for (Iterator iter = sites.iterator(); iter.hasNext();) {
Site nextSite = (Site) iter.next();
try {
- File nextFile = URIUtil.toFile(URIUtil.fromString(nextSite.getUrl()));
+ File nextFile = URLUtil.toFile(new URL(nextSite.getUrl()));
if (nextFile == null)
continue;
if (nextFile.equals(file))
return nextSite;
- } catch (URISyntaxException e) {
+ } catch (MalformedURLException e) {
//ignore incorrectly formed site
}
}

Back to the top