Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Sennikovsky2005-07-07 14:57:20 -0400
committerMikhail Sennikovsky2005-07-07 14:57:20 -0400
commit7425c7577181261adb111f01a144dd62d665fb69 (patch)
tree6456cb3cd2a8a395fd2929aa2d5bc9c3a88055b2
parentc1c91403c4a436c731f139830d89966d2eae8a12 (diff)
downloadorg.eclipse.cdt-7425c7577181261adb111f01a144dd62d665fb69.tar.gz
org.eclipse.cdt-7425c7577181261adb111f01a144dd62d665fb69.tar.xz
org.eclipse.cdt-7425c7577181261adb111f01a144dd62d665fb69.zip
fixed the bug with handling the case of executing the CygPathResolver on non-windows systems
-rw-r--r--build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/cygwin/CygwinPathResolver.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/cygwin/CygwinPathResolver.java b/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/cygwin/CygwinPathResolver.java
index 2795e470ef..4cfec1cf94 100644
--- a/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/cygwin/CygwinPathResolver.java
+++ b/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/cygwin/CygwinPathResolver.java
@@ -65,12 +65,13 @@ public class CygwinPathResolver implements IBuildPathResolver {
public String[] resolveBuildPaths(int pathType, String variableName,
String variableValue, IConfiguration configuration) {
- if(isMinGW(configuration)){
+ if(!isWindows()){
+ return variableValue.split(DELIMITER_UNIX);
+ } else if(isMinGW(configuration)){
return variableValue.split(DELIMITER_WIN);
}
String[] result = variableValue.split(DELIMITER_UNIX);
- if (!isWindows()) return result;
String exePath = getBinPath();
if (exePath == null) { return result; } // no changes
File file = new File(exePath);

Back to the top