1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

Fix for 102348: cygpath not found.

Cygpath is asked for translation only if "/..." include paths are discovered on WIN32 platform.
This commit is contained in:
Vladimir Hirsl 2005-07-05 15:12:10 +00:00
parent 9dc44a1309
commit 23bf7780e8

View file

@ -86,6 +86,21 @@ public class CygpathTranslator {
* @return
*/
public static List translateIncludePaths(IProject project, List sumIncludes) {
// first check if cygpath translation is needed at all
boolean translationNeeded = false;
if (Platform.getOS().equals(Platform.OS_WIN32)) {
for (Iterator i = sumIncludes.iterator(); i.hasNext(); ) {
String include = (String) i.next();
if (include.startsWith("/")) { //$NON-NLS-1$
translationNeeded = true;
break;
}
}
}
if (!translationNeeded) {
return sumIncludes;
}
CygpathTranslator cygpath = new CygpathTranslator(project);
if (cygpath.cygPath == null) return sumIncludes;