1
0
Fork 0
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:
Jeff Johnston 2016-07-14 17:02:06 -04:00
parent 50dff78b51
commit 1560afe3fa

View file

@ -121,11 +121,11 @@ public class ContainerLaunchConfigurationDelegate extends GdbLaunchDelegate
if (commandPath != null) { if (commandPath != null) {
// create some labels to allow user to filter out such Containers if // create some labels to allow user to filter out such Containers if
// kept // kept
Map<String, String> labels = new HashMap<>(); HashMap<String, String> labels = new HashMap<>();
labels.put("CDTLaunch", ""); //$NON-NLS-1$ //$NON-NLS-2$ labels.put("org.eclipse.cdt.container-launch", ""); //$NON-NLS-1$ //$NON-NLS-2$
String projectName = configuration.getAttribute( String projectName = configuration.getAttribute(
ICDTLaunchConfigurationConstants.ATTR_PROJECT_NAME, ""); //$NON-NLS-1$ 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)) { if (mode.equals(ILaunchManager.RUN_MODE)) {
String commandDir = commandPath.removeLastSegments(1) String commandDir = commandPath.removeLastSegments(1)
.toString(); .toString();