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

bug 303463: Building makefile project fails with "Error 141" (make) / IllegalArgumentException java exception

This commit is contained in:
Andrew Gvozdev 2010-03-12 18:24:24 +00:00
parent 01a10a10bf
commit 8c78cc1ed7

View file

@ -87,12 +87,20 @@ public class ScannerInfoConsoleParserUtility extends AbstractGCCBOPConsoleParser
}
}
}
if (file!=null) {
String filePath = new Path(fileName).toString();
String foundLocation = file.getLocation().toString();
if (!foundLocation.endsWith(filePath)) {
file = null;
}
}
return file;
}
/**
* @param filePath
* @return
* @return file in workspace as {@link IFile} or {@code null} if not found
*/
protected IFile findFilePath(String filePath) {
IPath path = null;
@ -132,7 +140,7 @@ public class ScannerInfoConsoleParserUtility extends AbstractGCCBOPConsoleParser
/**
* @param fileName
* @return
* @return file in workspace as {@link IFile} or {@code null}
*/
protected IFile findFileName(String fileName) {
IPath path = new Path(fileName);