mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 08:46:02 +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;
|
return file;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param filePath
|
* @param filePath
|
||||||
* @return
|
* @return file in workspace as {@link IFile} or {@code null} if not found
|
||||||
*/
|
*/
|
||||||
protected IFile findFilePath(String filePath) {
|
protected IFile findFilePath(String filePath) {
|
||||||
IPath path = null;
|
IPath path = null;
|
||||||
|
@ -132,7 +140,7 @@ public class ScannerInfoConsoleParserUtility extends AbstractGCCBOPConsoleParser
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param fileName
|
* @param fileName
|
||||||
* @return
|
* @return file in workspace as {@link IFile} or {@code null}
|
||||||
*/
|
*/
|
||||||
protected IFile findFileName(String fileName) {
|
protected IFile findFileName(String fileName) {
|
||||||
IPath path = new Path(fileName);
|
IPath path = new Path(fileName);
|
||||||
|
|
Loading…
Add table
Reference in a new issue