public class EclipseLaunchConfiguration extends Object implements LaunchConfiguration
execute()
method an eclipse launch
configuration.Constructor and Description |
---|
EclipseLaunchConfiguration(org.eclipse.debug.core.ILaunchConfiguration launchConfiguration,
org.eclipse.jdt.core.IJavaProject launchedProject)
Creates a Beagle launch configuration from an eclipse launch configuration.
|
Modifier and Type | Method and Description |
---|---|
LaunchConfiguration |
appendJvmArgument(String argument)
Adds the given
argument to the JVM arguments used when launching the
software. |
void |
execute()
Executes the launch of the measured software.
|
LaunchConfiguration |
prependClasspath(String classPathEntry)
Adds the given
classPathEntry to the start of the Java classpath used when
launching the software. |
public EclipseLaunchConfiguration(org.eclipse.debug.core.ILaunchConfiguration launchConfiguration, org.eclipse.jdt.core.IJavaProject launchedProject)
launchConfiguration
- The eclipse launch configuration which should be
launched to execute the code under test.launchedProject
- The project that will be launched when executing the
launchConfiguration
.public void execute() throws InterruptedException
LaunchConfiguration
execute
in interface LaunchConfiguration
InterruptedException
- If the current thread is interrupted while the launch
is being executed, an InterruptedException
might be thrown to
indicate this.public LaunchConfiguration prependClasspath(String classPathEntry)
LaunchConfiguration
classPathEntry
to the start of the Java classpath used when
launching the software. This setting persists only until the next call to
LaunchConfiguration.execute()
.prependClasspath
in interface LaunchConfiguration
classPathEntry
- A classpath entry to prepend the launched software’s Java
classpath with.this
.public LaunchConfiguration appendJvmArgument(String argument)
LaunchConfiguration
argument
to the JVM arguments used when launching the
software. This setting persists only until the next call to LaunchConfiguration.execute()
.appendJvmArgument
in interface LaunchConfiguration
argument
- An argument to pass to the launched program’s JVM.this
.