Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDJ Houghton2008-10-10 20:19:15 +0000
committerDJ Houghton2008-10-10 20:19:15 +0000
commit78b8217cbc6de8a29d167ffc6268ab5db14d9d41 (patch)
treeaba45a09523f00425dccb8a8188c28b9442fb176 /bundles/org.eclipse.equinox.p2.director.app
parent87743d42019afc0342bc4a4eafd0825f36b7d95c (diff)
downloadrt.equinox.p2-78b8217cbc6de8a29d167ffc6268ab5db14d9d41.tar.gz
rt.equinox.p2-78b8217cbc6de8a29d167ffc6268ab5db14d9d41.tar.xz
rt.equinox.p2-78b8217cbc6de8a29d167ffc6268ab5db14d9d41.zip
Bug 250452 - Update applications to handle URIs
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.director.app')
-rw-r--r--bundles/org.eclipse.equinox.p2.director.app/src_ant/org/eclipse/equinox/p2/director/app/ant/DirectorTask.java5
1 files changed, 3 insertions, 2 deletions
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);
}

Back to the top