org.eclipse.jdt.core.tests.runtime
Class StandardVMLauncher

java.lang.Object
  extended by org.eclipse.jdt.core.tests.runtime.LocalVMLauncher
      extended by org.eclipse.jdt.core.tests.runtime.StandardVMLauncher
All Implemented Interfaces:
RuntimeConstants
Direct Known Subclasses:
DRLVMLauncher, MacVMLauncher, SideCarJ9VMLauncher, SideCarVMLauncher

public class StandardVMLauncher
extends LocalVMLauncher
implements RuntimeConstants

A standard VM launcher launches an external standard VM with the given arguments on the same machine.


Field Summary
 
Fields inherited from class org.eclipse.jdt.core.tests.runtime.LocalVMLauncher
BOOT_CLASSPATH_DIRECTORY, REGULAR_CLASSPATH_DIRECTORY, TARGET_HAS_FILE_SYSTEM
 
Fields inherited from interface org.eclipse.jdt.core.tests.runtime.RuntimeConstants
CODE_SNIPPET_RUNNER_CLASS_NAME, CODESNIPPET_BOOTPATH_ARG, CODESNIPPET_CLASSPATH_ARG, EVALPORT_ARG, RUN_CODE_SNIPPET_METHOD, SUPPORT_ZIP_FILE_NAME, THE_RUNNER_FIELD
 
Constructor Summary
StandardVMLauncher()
          Creates a new StandardVMLauncher that launches a standard VM on the same machine.
 
Method Summary
 java.lang.String getBatchFileName()
          Returns the name of the batch file used to launch the VM.
 java.lang.String[] getCommandLine()
          Returns the command line which will be used to launch the VM.
 void setBatchFileName(java.lang.String batchFileName)
          Sets the name of the batch file used to launch the VM.
 
Methods inherited from class org.eclipse.jdt.core.tests.runtime.LocalVMLauncher
getBootClassPath, getClassPath, getDebugPort, getEvalPort, getEvalTargetPath, getLauncher, getProgramArguments, getProgramClass, getRunningVirtualMachines, getTargetAddress, getVMArguments, getVMPath, launch, setBootClassPath, setClassPath, setDebugPort, setEvalPort, setEvalTargetPath, setProgramArguments, setProgramClass, setVMArguments, setVMPath
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardVMLauncher

public StandardVMLauncher()
Creates a new StandardVMLauncher that launches a standard VM on the same machine.

Method Detail

getBatchFileName

public java.lang.String getBatchFileName()
Returns the name of the batch file used to launch the VM.


getCommandLine

public java.lang.String[] getCommandLine()
Description copied from class: LocalVMLauncher
Returns the command line which will be used to launch the VM. The segments are in the following order:

Specified by:
getCommandLine in class LocalVMLauncher
See Also:
LocalVMLauncher.getCommandLine()

setBatchFileName

public void setBatchFileName(java.lang.String batchFileName)
Sets the name of the batch file used to launch the VM. When this option is set, the launcher writes the command line to the given batch file, and it launches the batch file. This causes a DOS console to be opened. Note it doesn't delete the batch file when done.