mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 10:46:02 +02:00
Bug 497779 - Add labels to applications run as Docker containers
- fix labels to comply with Docker standards (lower-case and prefixed by reverse DNS notation) Change-Id: I7464f74e902f2198833e048a0d5dc6dd3c42de39
This commit is contained in:
parent
50dff78b51
commit
1560afe3fa
1 changed files with 3 additions and 3 deletions
|
@ -121,11 +121,11 @@ public class ContainerLaunchConfigurationDelegate extends GdbLaunchDelegate
|
|||
if (commandPath != null) {
|
||||
// create some labels to allow user to filter out such Containers if
|
||||
// kept
|
||||
Map<String, String> labels = new HashMap<>();
|
||||
labels.put("CDTLaunch", ""); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
HashMap<String, String> labels = new HashMap<>();
|
||||
labels.put("org.eclipse.cdt.container-launch", ""); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
String projectName = configuration.getAttribute(
|
||||
ICDTLaunchConfigurationConstants.ATTR_PROJECT_NAME, ""); //$NON-NLS-1$
|
||||
labels.put("CDTProject", projectName); //$NON-NLS-1$
|
||||
labels.put("org.eclipse.cdt.project-name", projectName); //$NON-NLS-1$
|
||||
if (mode.equals(ILaunchManager.RUN_MODE)) {
|
||||
String commandDir = commandPath.removeLastSegments(1)
|
||||
.toString();
|
||||
|
|
Loading…
Add table
Reference in a new issue