1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 17:56:01 +02:00

Bug 538147 Fix mounting folders using windows

Removing unnecessary code fixes things, as paths are corectly handled
in the docker code.

Change-Id: If8b6b8877d5664c6692f58b0646cd0a93857a379
This commit is contained in:
Moritz 'Morty' Strübe 2020-08-20 13:12:16 +02:00
parent a588063b23
commit 240ca9085c

View file

@ -272,18 +272,7 @@ public class ContainerCommandLauncher implements ICommandLauncher, ICBuildComman
// Add any specified volumes to additional dir list // Add any specified volumes to additional dir list
if (selectedVolumeString != null && !selectedVolumeString.isEmpty()) { if (selectedVolumeString != null && !selectedVolumeString.isEmpty()) {
String[] selectedVolumes = selectedVolumeString.split(VOLUME_SEPARATOR_REGEX); String[] selectedVolumes = selectedVolumeString.split(VOLUME_SEPARATOR_REGEX);
if (Platform.getOS().equals(Platform.OS_WIN32)) { additionalDirs.addAll(Arrays.asList(selectedVolumes));
for (String selectedVolume : selectedVolumes) {
IPath path = new Path(selectedVolume);
String selectedPath = path.toPortableString();
if (path.getDevice() != null) {
selectedPath = "/" + selectedPath.replace(':', '/'); //$NON-NLS-1$
}
additionalDirs.add(selectedPath);
}
} else {
additionalDirs.addAll(Arrays.asList(selectedVolumes));
}
} }
if (connectionName == null) { if (connectionName == null) {