Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2010-08-18 11:57:42 -0400
committerPascal Rapicault2010-08-18 11:57:42 -0400
commit25d4506a68edf084ad53e317101671103a570749 (patch)
treee993459596e186dc9a40308d995c5daf6ced2f6e /bundles/org.eclipse.equinox.p2.artifact.repository
parent50720f351c6e67222729f406fcdf6a81feccfdd7 (diff)
downloadrt.equinox.p2-25d4506a68edf084ad53e317101671103a570749.tar.gz
rt.equinox.p2-25d4506a68edf084ad53e317101671103a570749.tar.xz
rt.equinox.p2-25d4506a68edf084ad53e317101671103a570749.zip
Bug 313747 - SimpleArtifactRepository fails to transfer files when its location is relative
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.artifact.repository')
-rw-r--r--bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepository.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepository.java b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepository.java
index 343ec0a44..c07dc1061 100644
--- a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepository.java
+++ b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepository.java
@@ -708,7 +708,8 @@ public class SimpleArtifactRepository extends AbstractArtifactRepository impleme
if (result != null) {
if (isFolderBased(descriptor) && URIUtil.lastSegment(result).endsWith(JAR_EXTENSION))
return URIUtil.removeFileExtension(result);
-
+ if (result.getScheme() == null && "file".equals(getLocation().getScheme())) //$NON-NLS-1$
+ return URIUtil.makeAbsolute(result, new File(System.getProperty("user.dir")).toURI()); //$NON-NLS-1$
return result;
}
}

Back to the top