1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

Fix to better handle build output parsing random text.

Handle failures when trying to find the resource at the end of
a command line when it's not really a command line.

Change-Id: I7dc94a2c45c758248d0402c253e077142ee050e3
This commit is contained in:
Doug Schaefer 2016-09-15 15:01:48 -04:00 committed by Gerrit Code Review @ Eclipse.org
parent 25d4502b80
commit fb533553c8

View file

@ -423,7 +423,12 @@ public class GCCToolChain extends PlatformObject implements IToolChain {
if (srcPath.isAbsolute()) {
uri = srcPath.toUri();
} else {
uri = buildDirectoryURI.resolve(arg);
try {
uri = buildDirectoryURI.resolve(arg);
} catch (IllegalArgumentException e) {
// Bad URI
continue;
}
}
for (IFile resource : root.findFilesForLocationURI(uri)) {