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,7 +452,9 @@ public abstract class AbstractLanguageSettingsOutputScanner extends LanguageSett
}
if (buildDirURI == null && currentCfgDescription != null) {
String builderCWD = currentCfgDescription.getBuildSetting().getBuilderCWD().toString();
IPath pathBuilderCWD = currentCfgDescription.getBuildSetting().getBuilderCWD();
if (pathBuilderCWD != null) {
String builderCWD = pathBuilderCWD.toString();
try {
// TODO - here is a hack to overcome ${workspace_loc:/prj-name} returned by builder
ICdtVariableManager vmanager = CCorePlugin.getDefault().getCdtVariableManager();
@ -462,6 +464,7 @@ public abstract class AbstractLanguageSettingsOutputScanner extends LanguageSett
}
buildDirURI = org.eclipse.core.filesystem.URIUtil.toURI(builderCWD);
}
}
if (buildDirURI == null && currentProject != null) {
buildDirURI = currentProject.getLocationURI();