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:
parent
01a10a10bf
commit
8c78cc1ed7
1 changed files with 10 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue