Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Niefer2009-03-07 15:42:25 -0500
committerAndrew Niefer2009-03-07 15:42:25 -0500
commit25dd184bbe4628b675f4309d638f3bb0ec49eeb9 (patch)
tree1d7ac38ae55488690b0c9d22d2c8b7c33dfc4230 /bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse
parent850cce2ceb7c72eade747f24c189ef410886ad8c (diff)
downloadrt.equinox.p2-25dd184bbe4628b675f4309d638f3bb0ec49eeb9.tar.gz
rt.equinox.p2-25dd184bbe4628b675f4309d638f3bb0ec49eeb9.tar.xz
rt.equinox.p2-25dd184bbe4628b675f4309d638f3bb0ec49eeb9.zip
bug 267509 - Repo2Runnable doubly encodes string
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse')
-rw-r--r--bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse/equinox/p2/internal/repository/tools/tasks/AbstractRepositoryTask.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse/equinox/p2/internal/repository/tools/tasks/AbstractRepositoryTask.java b/bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse/equinox/p2/internal/repository/tools/tasks/AbstractRepositoryTask.java
index 85304e2b5..3dd4c8e73 100644
--- a/bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse/equinox/p2/internal/repository/tools/tasks/AbstractRepositoryTask.java
+++ b/bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse/equinox/p2/internal/repository/tools/tasks/AbstractRepositoryTask.java
@@ -17,6 +17,7 @@ import java.util.*;
import org.apache.tools.ant.*;
import org.apache.tools.ant.types.FileSet;
import org.eclipse.core.runtime.Path;
+import org.eclipse.core.runtime.URIUtil;
import org.eclipse.equinox.internal.provisional.p2.core.Version;
import org.eclipse.equinox.internal.provisional.p2.metadata.query.InstallableUnitQuery;
import org.eclipse.equinox.internal.provisional.p2.metadata.query.LatestIUVersionQuery;
@@ -71,13 +72,13 @@ public abstract class AbstractRepositoryTask extends Task {
*/
public void setDestination(String location) {
DestinationRepository metadata = new DestinationRepository();
- metadata.setLocation(new Path(location).toFile().toURI().toString());
+ metadata.setLocation(URIUtil.toUnencodedString(new Path(location).toFile().toURI()));
metadata.setKind("metadata"); //$NON-NLS-1$
application.addDestination(metadata.getDescriptor());
destinations.add(metadata);
DestinationRepository artifact = new DestinationRepository();
- artifact.setLocation(new Path(location).toFile().toURI().toString());
+ artifact.setLocation(URIUtil.toUnencodedString(new Path(location).toFile().toURI()));
metadata.setKind("artifact"); //$NON-NLS-1$
application.addDestination(artifact.getDescriptor());
destinations.add(artifact);

Back to the top