Source:
protected void performOverrides(ILaunchConfigurationWorkingCopy workingCopy) throws CoreException { final IServer s = ServerUtil.getServer(workingCopy); final CDKServer cdkServer = (CDKServer) s.loadAdapter(CDKServer.class, new NullProgressMonitor()); String workingDir = JBossServerCorePlugin.getServerStateLocation(s).toOSString(); workingCopy.setAttribute(ATTR_WORKING_DIR, workingDir); Map<String, String> env = workingCopy.getAttribute(ENVIRONMENT_VARS_KEY, (Map<String, String>) null); env = (env == null ? new HashMap<>() : new HashMap<>(env)); String msHome = s.getAttribute(CDK3Server.MINISHIFT_HOME, (String) null); if (msHome != null) { env.put("MINISHIFT_HOME", msHome); } String userKey = cdkServer.getUserEnvironmentKey(); boolean passCredentials = cdkServer.passCredentials(); if (passCredentials) { env.put(userKey, cdkServer.getUsername()); } else { env.remove(userKey); } setMinishiftLocationOnLaunchConfig(cdkServer, workingCopy, env); workingCopy.setAttribute(ENVIRONMENT_VARS_KEY, env); String targetedHypervisor = cdkServer.getServer().getAttribute(CDK3Server.PROP_HYPERVISOR, CDK3Server.getHypervisors()[0]); String profiles = getProfileString(getServer()); String profileName = s.getAttribute(CDK32Server.PROFILE_ID, (String)null); String defaultArgs = profiles + "start --vm-driver=" + targetedHypervisor; String currentVal = workingCopy.getAttribute(ATTR_ARGS, defaultArgs); String replaced = ArgsUtil.setArg(currentVal, null, "--vm-driver", targetedHypervisor); if( profileName != null && !profileName.isEmpty()) { replaced = ArgsUtil.setArg(replaced, "--profile", null, profileName); } workingCopy.setAttribute(ATTR_ARGS, replaced); }

Target:
protected void performOverrides(ILaunchConfigurationWorkingCopy workingCopy) throws CoreException { final IServer s = ServerUtil.getServer(workingCopy); final CDKServer cdkServer = (CDKServer) s.loadAdapter(CDKServer.class, new NullProgressMonitor()); String workingDir = JBossServerCorePlugin.getServerStateLocation(s).toOSString(); workingCopy.setAttribute(ATTR_WORKING_DIR, workingDir); Map<String, String> env = workingCopy.getAttribute(ENVIRONMENT_VARS_KEY, (Map<String, String>) null); env = (env == null ? new HashMap<>() : new HashMap<>(env)); String msHome = s.getAttribute(CDK3Server.MINISHIFT_HOME, (String) null); if (msHome != null) { env.put("MINISHIFT_HOME", msHome); } String userKey = cdkServer.getUserEnvironmentKey(); boolean passCredentials = cdkServer.passCredentials(); if (passCredentials) { env.put(userKey, cdkServer.getUsername()); } else { env.remove(userKey); } setMinishiftLocationOnLaunchConfig(cdkServer, workingCopy, env); workingCopy.setAttribute(ENVIRONMENT_VARS_KEY, env); String targetedHypervisor = cdkServer.getServer().getAttribute(CDK3Server.PROP_HYPERVISOR, CDK3Server.getHypervisors()[0]); String profiles = getProfileString(getServer()); String profileName = s.getAttribute(CDK32Server.PROFILE_ID, (String)null); String defaultArgs = profiles + "start --vm-driver=" + targetedHypervisor; String currentVal = workingCopy.getAttribute(ATTR_ARGS, defaultArgs); String replaced = ArgsUtil.setArg(currentVal, null, "--vm-driver", targetedHypervisor); if( !StringUtils.isEmpty(profileName)) { replaced = ArgsUtil.setArg(replaced, "--profile", null, profileName); } workingCopy.setAttribute(ATTR_ARGS, replaced); }