1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-31 12:55:40 +02:00

Bug 468889 - Fix RemoteServiceUtils.posixPath() for Kepler on Windows

The fallback code was returning RemotePath(path) on Windows, which gives
a path for the local file system, hence a Windows path, not a POSIX one.

Change-Id: I220ffd7fbc7521fb28a5b1d0d41bf966131c035a
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
This commit is contained in:
Patrick Tasse 2015-10-14 10:24:24 -04:00
parent 150b50ab79
commit f1cf0e8c5c

View file

@ -43,13 +43,7 @@ public class RemoteServicesUtils {
} catch (NoSuchMethodError e) {
//TODO For older Eclipse, use the fallback below. That code should be
//removed when support for Eclipse older than Mars is no longer needed.
}
/** Constant value indicating if the current platform is Windows */
boolean RUNNING_ON_WINDOWS = java.io.File.separatorChar == '\\';
if (! RUNNING_ON_WINDOWS) {
return new Path(path);
} else {
return new RemotePath(path);
return RemotePath.forPosix(path);
}
}