public class VMRunnerConfiguration
extends java.lang.Object
Clients may instantiate this class.
| Constructor and Description |
|---|
VMRunnerConfiguration(java.lang.String classToLaunch,
java.lang.String[] classPath)
Creates a new configuration for launching a VM to run the given main class
using the given class path.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getBootClassPath()
Returns the boot classpath.
|
java.lang.String[] |
getClassPath()
Returns the classpath.
|
java.lang.String |
getClassToLaunch()
Returns the name of the class to launch.
|
java.lang.String[] |
getEnvironment()
Returns the environment for the Java program or
null |
java.lang.String |
getModuleDescription()
Returns the ModuleDescription.
|
java.lang.String[] |
getModulepath()
Returns the Modulepath.
|
java.lang.String |
getOverrideDependencies()
Gets the fOverrideDependencies.
|
java.lang.String[] |
getProgramArguments()
Returns the arguments to the Java program.
|
java.lang.String[] |
getVMArguments()
Returns the arguments to the VM itself.
|
java.util.Map<java.lang.String,java.lang.Object> |
getVMSpecificAttributesMap()
Returns the
Map that contains String name/value pairs that represent
VM-specific attributes. |
java.lang.String |
getWorkingDirectory()
Returns the working directory of a launched VM.
|
boolean |
isMergeOutput()
Gets the fMergeOutput.
|
boolean |
isPreviewEnabled()
Gets the fPreviewEnabled.
|
boolean |
isResumeOnStartup()
Returns whether the VM is resumed on startup when launched
in debug mode.
|
void |
setBootClassPath(java.lang.String[] bootClassPath)
Sets the boot classpath.
|
void |
setEnvironment(java.lang.String[] environment)
Sets the environment for the Java program.
|
void |
setMergeOutput(boolean fMergeOutput)
Sets the fMergeOutput.
|
void |
setModuleDescription(java.lang.String fModuleDescription)
Sets the fModuleDescription.
|
void |
setModulepath(java.lang.String[] modulepath)
Sets the modulepath.
|
void |
setOverrideDependencies(java.lang.String fOverrideDependencies)
Sets the fOverrideDependencies.
|
void |
setPreviewEnabled(boolean fPreviewEnabled)
Sets the fPreviewEnabled.
|
void |
setProgramArguments(java.lang.String[] args)
Sets the custom program arguments.
|
void |
setResumeOnStartup(boolean resume)
Sets whether the VM is resumed on startup when launched in
debug mode.
|
void |
setVMArguments(java.lang.String[] args)
Sets the custom VM arguments.
|
void |
setVMSpecificAttributesMap(java.util.Map<java.lang.String,java.lang.Object> map)
Sets the
Map that contains String name/value pairs that represent
VM-specific attributes. |
void |
setWorkingDirectory(java.lang.String path)
Sets the working directory for a launched VM.
|
public VMRunnerConfiguration(java.lang.String classToLaunch,
java.lang.String[] classPath)
classToLaunch - The fully qualified name of the class to launch. May not be null.classPath - The classpath. May not be null.public void setVMSpecificAttributesMap(java.util.Map<java.lang.String,java.lang.Object> map)
Map that contains String name/value pairs that represent
VM-specific attributes.map - the Map of VM-specific attributes.public void setVMArguments(java.lang.String[] args)
args - the list of VM argumentspublic void setProgramArguments(java.lang.String[] args)
args - the list of argumentspublic void setEnvironment(java.lang.String[] environment)
environment - the environment for the Java program specified as an array
of strings, each element specifying an environment variable setting in the
format name=valuepublic void setBootClassPath(java.lang.String[] bootClassPath)
In release 3.0, support has been added for appending and prepending the
boot classpath. Generally an IVMRunner should use the prepend,
main, and append boot classpaths provided. However, in the case that an
IVMRunner does not support these options, a complete bootpath
should also be specified.
bootClassPath - The boot classpath. An empty array indicates an empty
bootpath and null indicates a default bootpath.public java.util.Map<java.lang.String,java.lang.Object> getVMSpecificAttributesMap()
Map that contains String name/value pairs that represent
VM-specific attributes.Map of VM-specific attributes or null.public java.lang.String getClassToLaunch()
null.public java.lang.String[] getClassPath()
public java.lang.String[] getBootClassPath()
null indicates a default bootpath.
In 3.0, support has been added for prepending and appending to the
boot classpath. The new attributes are stored in the VM specific
attributes map using the following keys defined in
IJavaLaunchConfigurationConstants:
null indicates a default bootpath.setBootClassPath(String[]),
IJavaLaunchConfigurationConstantspublic java.lang.String[] getVMArguments()
null.setVMArguments(String[])public java.lang.String[] getProgramArguments()
null.setProgramArguments(String[])public java.lang.String[] getEnvironment()
nullnullpublic void setWorkingDirectory(java.lang.String path)
path - the absolute path to the working directory
to be used by a launched VM, or null if
the default working directory is to be inherited from the
current processpublic java.lang.String getWorkingDirectory()
null if the working
directory is inherited from the current processpublic void setResumeOnStartup(boolean resume)
resume - whether to resume the VM on startuppublic boolean isResumeOnStartup()
true for backwards compatibility.public void setModulepath(java.lang.String[] modulepath)
modulepath - modulepathpublic java.lang.String[] getModulepath()
public void setModuleDescription(java.lang.String fModuleDescription)
fModuleDescription - fModuleDescriptionpublic java.lang.String getModuleDescription()
public java.lang.String getOverrideDependencies()
public void setOverrideDependencies(java.lang.String fOverrideDependencies)
fOverrideDependencies - the fOverrideDependencies to setpublic boolean isPreviewEnabled()
public void setPreviewEnabled(boolean fPreviewEnabled)
fPreviewEnabled - the fPreviewEnabled to setpublic boolean isMergeOutput()
public void setMergeOutput(boolean fMergeOutput)
true the VM will be run with redirectErrorStream(true) to merge error and standard output.fMergeOutput - the fMergeOutput to set