1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 01:36:01 +02:00

pwd in scanner discovery, bug 237958.

This commit is contained in:
Markus Schorn 2008-06-25 14:15:59 +00:00
parent 7a15b85483
commit a736d7bf98

View file

@ -256,6 +256,14 @@ public class GCCPerFileBOPConsoleParserUtility extends AbstractGCCBOPConsolePars
if (!cwd.isAbsolute()) {
cwd = getBaseDirectory().append(cwd);
}
if (filePath.startsWith("`pwd`")) { //$NON-NLS-1$
if (filePath.length() > 5 && (filePath.charAt(5) == '/' || filePath.charAt(5) == '\\')) {
filePath = filePath.substring(6);
}
else {
filePath = filePath.substring(5);
}
}
pFilePath = cwd.append(filePath);
}
return pFilePath;