mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-21 21:52:10 +02:00
bug 402412: IllegalArgumentException during build of Makefile Project
This commit is contained in:
parent
9945f84a04
commit
ae409bedd6
1 changed files with 12 additions and 1 deletions
|
@ -720,6 +720,17 @@ public abstract class AbstractLanguageSettingsOutputScanner extends LanguageSett
|
|||
if (sourceFile == null && currentCfgDescription != null) {
|
||||
IPath builderCWD = currentCfgDescription.getBuildSetting().getBuilderCWD();
|
||||
if (builderCWD != null) {
|
||||
String strBuilderCWD = builderCWD.toString();
|
||||
try {
|
||||
ICdtVariableManager varManager = CCorePlugin.getDefault().getCdtVariableManager();
|
||||
strBuilderCWD = varManager.resolveValue(strBuilderCWD, "", null, currentCfgDescription); //$NON-NLS-1$
|
||||
} catch (Exception e) {
|
||||
@SuppressWarnings("nls")
|
||||
String msg = "Exception trying to resolve value [" + strBuilderCWD + "]";
|
||||
ManagedBuilderCorePlugin.log(new Status(IStatus.ERROR, ManagedBuilderCorePlugin.PLUGIN_ID, msg, e));
|
||||
}
|
||||
builderCWD = new Path(strBuilderCWD);
|
||||
|
||||
IPath path = builderCWD.append(parsedResourceName);
|
||||
URI uri = org.eclipse.core.filesystem.URIUtil.toURI(path);
|
||||
sourceFile = findFileForLocationURI(uri, currentProject, /*checkExistence*/ true);
|
||||
|
|
Loading…
Add table
Reference in a new issue