*/
@Override
protected void doConfigure(ILaunchConfigurationWorkingCopy workingCopy)
throws CoreException {
IKarafRuntime runtime = null;
if (server.getRuntime() != null) {
runtime = (IKarafRuntime)server.getRuntime().loadAdapter(IKarafRuntime.class, null);
}
if (runtime != null) {
String karafInstallDir = runtime.getLocation().toOSString();
String mainProgram = null;
String vmArguments = null;
String version = runtime.getVersion();
if (version != null) {
if (version.startsWith(IFabric8ToolingConstants.FABRIC8_VERSION_1x)) {
// handle 4x specific program arguments
vmArguments = getVMArguments(karafInstallDir);
mainProgram = getMainProgram();