/** * @return any configured environment variables */ public Map<String, String> getEnvironment() throws CoreException { Map<String, String> map = new HashMap<String, String>(); String[] environment = DebugPlugin.getDefault().getLaunchManager().getEnvironment(launchConfig); if (environment != null) { for (String envProperty : environment) { int index = envProperty.indexOf('='); if (index > 0) { String key = envProperty.substring(0, index); String value = envProperty.substring(index + 1); map.put(key, value); } } } return map; }
/** * Returns an array of environment variables to be used when * launching the given configuration or <code>null</code> if unspecified. * * @param configuration launch configuration * @return an array of environment variables to use when launching the given configuration or null if unspecified * @throws CoreException if unable to access associated attribute or if * unable to resolve a variable in an environment variable's value * @since 3.1 */ public String[] getEnvironment(ILaunchConfiguration configuration) throws CoreException { return DebugPlugin.getDefault().getLaunchManager().getEnvironment(configuration); }
/** * Returns an array of environment variables to be used when * launching the given configuration or <code>null</code> if unspecified. * * @param configuration launch configuration * @return the environment variables to be used when launching or <code>null</code> * @throws CoreException if unable to access associated attribute or if * unable to resolve a variable in an environment variable's value */ public String[] getEnvironment(ILaunchConfiguration configuration) throws CoreException { return DebugPlugin.getDefault().getLaunchManager().getEnvironment(configuration); }
/** * Returns an array of environment variables to be used when * launching the given configuration or <code>null</code> if unspecified. * * @param configuration launch configuration * @return an array of environment variables to use when launching the given configuration or null if unspecified * @throws CoreException if unable to access associated attribute or if * unable to resolve a variable in an environment variable's value * @since 3.1 */ public String[] getEnvironment(ILaunchConfiguration configuration) throws CoreException { return DebugPlugin.getDefault().getLaunchManager().getEnvironment(configuration); }
public String[] getEnvironment(ILaunchConfiguration configuration) throws CoreException { return DebugPlugin.getDefault().getLaunchManager().getEnvironment(configuration); }
.getEnvironment(configuration);
final String[] environment= DebugPlugin.getDefault().getLaunchManager().getEnvironment(configuration); final String programArguments= getProgramArguments(configuration); final String vmArguments= getVMArguments(configuration);