From 78b8217cbc6de8a29d167ffc6268ab5db14d9d41 Mon Sep 17 00:00:00 2001 From: DJ Houghton Date: Fri, 10 Oct 2008 20:19:15 +0000 Subject: Bug 250452 - Update applications to handle URIs --- .../org/eclipse/equinox/p2/director/app/ant/DirectorTask.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bundles/org.eclipse.equinox.p2.director.app') diff --git a/bundles/org.eclipse.equinox.p2.director.app/src_ant/org/eclipse/equinox/p2/director/app/ant/DirectorTask.java b/bundles/org.eclipse.equinox.p2.director.app/src_ant/org/eclipse/equinox/p2/director/app/ant/DirectorTask.java index 28d3b5fd3..e01d6056c 100644 --- a/bundles/org.eclipse.equinox.p2.director.app/src_ant/org/eclipse/equinox/p2/director/app/ant/DirectorTask.java +++ b/bundles/org.eclipse.equinox.p2.director.app/src_ant/org/eclipse/equinox/p2/director/app/ant/DirectorTask.java @@ -16,6 +16,7 @@ import java.net.URISyntaxException; import java.util.ArrayList; import java.util.List; import org.apache.tools.ant.*; +import org.eclipse.equinox.internal.p2.core.helpers.URIUtil; import org.eclipse.equinox.internal.p2.director.app.Application; import org.osgi.framework.Version; @@ -114,7 +115,7 @@ public class DirectorTask extends Task { public void setArtifactRepository(String value) { try { - artifactRepository = new URI(value); + artifactRepository = URIUtil.fromString(value); } catch (URISyntaxException e) { log("Error setting the artifact repository.", e, Project.MSG_ERR); } @@ -142,7 +143,7 @@ public class DirectorTask extends Task { public void setMetadataRepository(String value) { try { - metadataRepository = new URI(value); + metadataRepository = URIUtil.fromString(value); } catch (URISyntaxException e) { log("Error setting the metadata repository.", e, Project.MSG_ERR); } -- cgit v1.2.3