Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHannes Vogt2019-03-08 06:50:20 +0000
committerJeff Johnston2019-03-11 14:10:10 +0000
commit825423c1e3b2c94d628fbfc5de3c179a647ca51b (patch)
treefac596735de0092fbf2a889531d4253779ce3355
parent77c35208302591eb1702c9bf52c30d3f280f5566 (diff)
downloadorg.eclipse.cdt-825423c1e3b2c94d628fbfc5de3c179a647ca51b.tar.gz
org.eclipse.cdt-825423c1e3b2c94d628fbfc5de3c179a647ca51b.tar.xz
org.eclipse.cdt-825423c1e3b2c94d628fbfc5de3c179a647ca51b.zip
Bug 545192 - Convert directory path in docker for windowsCDT_9_7_0
Change-Id: I69c09d391e333495b57f09d7b7f5818a5428424f Signed-off-by: Hannes Vogt <hannes@havogt.de>
-rw-r--r--launch/org.eclipse.cdt.docker.launcher/META-INF/MANIFEST.MF2
-rw-r--r--launch/org.eclipse.cdt.docker.launcher/src/org/eclipse/cdt/docker/launcher/ContainerCommandLauncher.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/launch/org.eclipse.cdt.docker.launcher/META-INF/MANIFEST.MF b/launch/org.eclipse.cdt.docker.launcher/META-INF/MANIFEST.MF
index b2ec2c9e372..31541723cfb 100644
--- a/launch/org.eclipse.cdt.docker.launcher/META-INF/MANIFEST.MF
+++ b/launch/org.eclipse.cdt.docker.launcher/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %Plugin.name
Bundle-SymbolicName: org.eclipse.cdt.docker.launcher;singleton:=true
-Bundle-Version: 1.2.100.qualifier
+Bundle-Version: 1.2.101.qualifier
Bundle-Activator: org.eclipse.cdt.docker.launcher.DockerLaunchUIPlugin
Bundle-Vendor: %Plugin.vendor
Bundle-Localization: plugin
diff --git a/launch/org.eclipse.cdt.docker.launcher/src/org/eclipse/cdt/docker/launcher/ContainerCommandLauncher.java b/launch/org.eclipse.cdt.docker.launcher/src/org/eclipse/cdt/docker/launcher/ContainerCommandLauncher.java
index 3b65d0fb914..029bab3eb9d 100644
--- a/launch/org.eclipse.cdt.docker.launcher/src/org/eclipse/cdt/docker/launcher/ContainerCommandLauncher.java
+++ b/launch/org.eclipse.cdt.docker.launcher/src/org/eclipse/cdt/docker/launcher/ContainerCommandLauncher.java
@@ -187,7 +187,7 @@ public class ContainerCommandLauncher implements ICommandLauncher, ICBuildComman
String modifiedArg = realArg;
// if the directory of the arg as a file exists, we mount it
// and modify the argument to be unix-style
- if (f.isFile()) {
+ if (f.isFile() || f.isDirectory()) {
f = f.getParentFile();
modifiedArg = "/" //$NON-NLS-1$
+ p.toPortableString().replace(':', '/');

Back to the top