| Constructor and Description |
|---|
AbstractVMRunner() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
abort(String message,
Throwable exception,
int code)
Throws a core exception with an error status object built from
the given message, lower level exception, and error code.
|
protected String[] |
combineVmArgs(VMRunnerConfiguration configuration,
IVMInstall vmInstall)
Combines and returns VM arguments specified by the runner configuration,
with those specified by the VM install, if any.
|
protected Process |
exec(String[] cmdLine,
File workingDirectory)
Executes the given command line using the given working directory
|
protected Process |
exec(String[] cmdLine,
File workingDirectory,
String[] envp)
Executes the given command line using the given working directory and environment
|
protected String |
getCmdLineAsString(String[] cmdLine)
Returns the given array of strings as a single space-delimited string.
|
protected Map<String,String> |
getDefaultProcessMap()
Returns the default process attribute map for Java processes.
|
protected abstract String |
getPluginIdentifier()
Returns the identifier of the plug-in this VM runner
originated from.
|
protected IProcess |
newProcess(ILaunch launch,
Process p,
String label,
Map<String,String> attributes)
Returns a new process aborting if the process could not be created.
|
protected void abort(String message, Throwable exception, int code) throws CoreException
message - the status messageexception - lower level exception associated with the
error, or null if nonecode - error codeCoreException - The exception encapsulating the reason for the abortprotected abstract String getPluginIdentifier()
protected Process exec(String[] cmdLine, File workingDirectory) throws CoreException
cmdLine - the command lineworkingDirectory - the working directoryProcessCoreException - if the execution failsDebugPlugin.exec(String[], File)protected Process exec(String[] cmdLine, File workingDirectory, String[] envp) throws CoreException
cmdLine - the command lineworkingDirectory - the working directoryenvp - the environmentProcessCoreException - is the execution failsDebugPlugin.exec(String[], File, String[])protected String getCmdLineAsString(String[] cmdLine)
cmdLine - array of stringsprotected Map<String,String> getDefaultProcessMap()
protected IProcess newProcess(ILaunch launch, Process p, String label, Map<String,String> attributes) throws CoreException
launch - the launch the process is contained inp - the system process to wraplabel - the label assigned to the processattributes - values for the attribute mapCoreException - problems occurred creating the processprotected String[] combineVmArgs(VMRunnerConfiguration configuration, IVMInstall vmInstall)
configuration - runner configurationvmInstall - VM install
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.