1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

[Bug 460131] Eclipse bin dir prepended to cross tool path

java.io.File is used to store the path to the cross tools.
getAbsolutePath is invoked before variables are expanded. Hence File
cannot see the path is already absolute and therefore prepends CWD.
Reverted to getPath, since conversion to full path would not make sense
anyway.

Change-Id: I13e5b2c0d7747741926a88e120d13003b910e8c6
Signed-off-by: Morten Kristiansen <millibit@gmail.com>
This commit is contained in:
Morten Kristiansen 2015-02-17 18:53:11 +01:00 committed by Gerrit Code Review @ Eclipse.org
parent 9c05b3506a
commit f680519739

View file

@ -78,7 +78,7 @@ public class CrossEnvironmentVariableSupplier implements
}
public String getValue() {
return path.getAbsolutePath();
return path.getPath();
}
}