mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-01 20:53:12 +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
(cherry picked from commit e24a04895a
)
This commit is contained in:
parent
d1f3705e0f
commit
96664e0f17
1 changed files with 2 additions and 1 deletions
|
@ -101,7 +101,8 @@ public class CApplicationLaunchShortcut implements ILaunchShortcut2 {
|
||||||
String projectName = CDebugUtils.getProjectName(config);
|
String projectName = CDebugUtils.getProjectName(config);
|
||||||
IPath name = bin.getResource().getProjectRelativePath();
|
IPath name = bin.getResource().getProjectRelativePath();
|
||||||
// don't match any launch config that is used for a Container launch
|
// 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 (programPath != null && programPath.equals(name)) {
|
||||||
if (projectName != null && projectName.equals(bin.getCProject().getProject().getName())) {
|
if (projectName != null && projectName.equals(bin.getCProject().getProject().getName())) {
|
||||||
candidateConfigs.add(config);
|
candidateConfigs.add(config);
|
||||||
|
|
Loading…
Add table
Reference in a new issue