Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorAnton Leherbauer2008-09-24 10:46:18 +0000
committerAnton Leherbauer2008-09-24 10:46:18 +0000
commit3eef8dc96ab8d9d73fa059d3de1673823a6e8d5a (patch)
tree256ed0ed4633d7ee626fb06df7f22c2ea222e9a5 /build
parentcae0db4052c9fa45bb5345c412977fb41403bf91 (diff)
downloadorg.eclipse.cdt-3eef8dc96ab8d9d73fa059d3de1673823a6e8d5a.tar.gz
org.eclipse.cdt-3eef8dc96ab8d9d73fa059d3de1673823a6e8d5a.tar.xz
org.eclipse.cdt-3eef8dc96ab8d9d73fa059d3de1673823a6e8d5a.zip
Bug 245692 - CygpathTranslator default conversion fails
Patch by Hans-Erik Floryd
Diffstat (limited to 'build')
-rw-r--r--build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig/util/CygpathTranslator.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig/util/CygpathTranslator.java b/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig/util/CygpathTranslator.java
index 2864468cbbf..419c1b10f8a 100644
--- a/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig/util/CygpathTranslator.java
+++ b/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig/util/CygpathTranslator.java
@@ -8,6 +8,7 @@
* Contributors:
* IBM - Initial API and implementation
* Anton Leherbauer (Wind River Systems)
+ * Hans-Erik Floryd (hef-cdt@rt-labs.com) - http://bugs.eclipse.org/245692
*******************************************************************************/
package org.eclipse.cdt.make.internal.core.scannerconfig.util;
@@ -126,7 +127,7 @@ public class CygpathTranslator {
if ("cygdrive".equals(realPath.segment(0))) { //$NON-NLS-1$
String drive= realPath.segment(1);
if (drive.length() == 1) {
- translatedPath= realPath.removeFirstSegments(2).setDevice(drive.toUpperCase() + ':').toOSString();
+ translatedPath= realPath.removeFirstSegments(2).makeAbsolute().setDevice(drive.toUpperCase() + ':').toOSString();
}
}
}

Back to the top