1
0
Fork 0
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:
Andrew Gvozdev 2011-10-20 17:18:18 -04:00
parent 08529151de
commit 470ce6cd41

View file

@ -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) {