mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fixed bug breaking JUnit test
This commit is contained in:
parent
08529151de
commit
470ce6cd41
1 changed files with 11 additions and 8 deletions
|
@ -452,15 +452,18 @@ public abstract class AbstractLanguageSettingsOutputScanner extends LanguageSett
|
||||||
}
|
}
|
||||||
|
|
||||||
if (buildDirURI == null && currentCfgDescription != null) {
|
if (buildDirURI == null && currentCfgDescription != null) {
|
||||||
String builderCWD = currentCfgDescription.getBuildSetting().getBuilderCWD().toString();
|
IPath pathBuilderCWD = currentCfgDescription.getBuildSetting().getBuilderCWD();
|
||||||
try {
|
if (pathBuilderCWD != null) {
|
||||||
// TODO - here is a hack to overcome ${workspace_loc:/prj-name} returned by builder
|
String builderCWD = pathBuilderCWD.toString();
|
||||||
ICdtVariableManager vmanager = CCorePlugin.getDefault().getCdtVariableManager();
|
try {
|
||||||
builderCWD = vmanager.resolveValue(builderCWD, "", null, currentCfgDescription);
|
// TODO - here is a hack to overcome ${workspace_loc:/prj-name} returned by builder
|
||||||
} catch (CdtVariableException e) {
|
ICdtVariableManager vmanager = CCorePlugin.getDefault().getCdtVariableManager();
|
||||||
MakeCorePlugin.log(e);
|
builderCWD = vmanager.resolveValue(builderCWD, "", null, currentCfgDescription);
|
||||||
|
} catch (CdtVariableException e) {
|
||||||
|
MakeCorePlugin.log(e);
|
||||||
|
}
|
||||||
|
buildDirURI = org.eclipse.core.filesystem.URIUtil.toURI(builderCWD);
|
||||||
}
|
}
|
||||||
buildDirURI = org.eclipse.core.filesystem.URIUtil.toURI(builderCWD);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (buildDirURI == null && currentProject != null) {
|
if (buildDirURI == null && currentProject != null) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue