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:
parent
a588063b23
commit
240ca9085c
1 changed files with 1 additions and 12 deletions
|
@ -272,18 +272,7 @@ public class ContainerCommandLauncher implements ICommandLauncher, ICBuildComman
|
|||
// Add any specified volumes to additional dir list
|
||||
if (selectedVolumeString != null && !selectedVolumeString.isEmpty()) {
|
||||
String[] selectedVolumes = selectedVolumeString.split(VOLUME_SEPARATOR_REGEX);
|
||||
if (Platform.getOS().equals(Platform.OS_WIN32)) {
|
||||
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));
|
||||
}
|
||||
additionalDirs.addAll(Arrays.asList(selectedVolumes));
|
||||
}
|
||||
|
||||
if (connectionName == null) {
|
||||
|
|
Loading…
Add table
Reference in a new issue