This class provides access to options for running JPDA tests.
The settings are presented as a set of getters and setters for test options,
which can be implemented in different ways. In this implementation test
options are implemented via VM system properties, which can be specified
using option '-D' in VM command line.
The following options are currently recognized:
jpda.settings.debuggeeJavaHome
- path to Java bundle to run debuggee on
jpda.settings.debuggeeJavaExec
- name of Java executable to run debuggee on
jpda.settings.debuggeeJavaPath
- full path to Java executable to run debuggee on
jpda.settings.debuggeeAgentName
- name of agent native library
jpda.settings.debuggeeAgentExtraOptions
- extra options for agent
jpda.settings.debuggeeClassName
- full name of class to run debuggee with
jpda.settings.debuggeeVMExtraOptions
- extra options to run debuggee with
jpda.settings.transportWrapperClass
- class name of TransportWrapper implementation
jpda.settings.transportAddress
- address for JDWP connection
jpda.settings.connectorKind
- type of JDWP connection (attach or listen)
jpda.settings.syncPort
- port number for sync connection
jpda.settings.timeout
- timeout used in JPDA tests
jpda.settings.waitingTime
- timeout for waiting events
jpda.settings.verbose
- flag that disables (default) or enables writing messages to the log
All options have default values, if they are not specified.
getDebuggeeAgentOptions(String address) Returns string with all options for agent including specified connection
address (only for debugger in listening mode).
Returns string with all options for agent including specified connection
address.
Parameters: address - - address to attach Parameters: isDebuggerListen - - true if debugger is listening for connection string with all agent options
Returns full name of the class to start debuggee with.
option "jpda.settings.debuggeeClassName" or"org.apache.harmony.jpda.tests.jdwp.share.debuggee.HelloWorld" by default
Returns full path to Java executable to run debuggee on.
option "jpda.settings.debuggeeJavaPath" or construct path fromgetDebuggeeJavaHome() and getDebuggeeJavaExec() by default.
Returns value of given property if it was set internally or specified in system properties.
Parameters: name - property name Parameters: defaultValue - default value for given property string value of given property or default value if no such property found
Sets internal value of given property to override corresponding system property.
Parameters: name - proparty name Parameters: value - value for given property