1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fix current patch concerning Container launching

- fix CApplicationLaunchShortcut find config method test for
  Container build so we don't ignore valid local launch configs

Change-Id: I4453ce2b26e15c9ec8ad53252e9e539c1268ddd8
This commit is contained in:
Jeff Johnston 2018-01-23 13:20:53 -05:00
parent 64154f20f2
commit e24a04895a

View file

@ -101,7 +101,8 @@ public class CApplicationLaunchShortcut implements ILaunchShortcut2 {
String projectName = CDebugUtils.getProjectName(config);
IPath name = bin.getResource().getProjectRelativePath();
// don't match any launch config that is used for a Container launch
if (config.getAttribute(CONNECTION_URI, "").isEmpty()) { //$NON-NLS-1$
String connectionURI = config.getAttribute(CONNECTION_URI, (String)null);
if (connectionURI == null) { //$NON-NLS-1$
if (programPath != null && programPath.equals(name)) {
if (projectName != null && projectName.equals(bin.getCProject().getProject().getName())) {
candidateConfigs.add(config);