public class MavenRuntimeLaunchSupport
extends java.lang.Object
Generates classworld configuration file, i.e. m2.conf. Generated classworld configuration file will include cliresolver for launch configuration that have workspace resolution enabled.
Sets the following conventional launch configuration attributes.
WorkspaceState
for details of the state file format. Only set if workspace dependency resolution is enabled
for the launch configuration.Modifier and Type | Class and Description |
---|---|
private class |
MavenRuntimeLaunchSupport.BackgroundResourceRefresher
Refreshes resources as specified by a launch configuration, when an associated process terminates.
|
static class |
MavenRuntimeLaunchSupport.Builder |
static class |
MavenRuntimeLaunchSupport.VMArguments |
Modifier and Type | Field and Description |
---|---|
private MavenLauncherConfigurationHandler |
cwconf |
private java.io.File |
cwconfFile |
private boolean |
resolveWorkspaceArtifacts |
private AbstractMavenRuntime |
runtime |
Constructor and Description |
---|
MavenRuntimeLaunchSupport(AbstractMavenRuntime runtime,
MavenLauncherConfigurationHandler cwconf,
java.io.File cwconfFile,
boolean resolveWorkspaceArtifacts) |
Modifier and Type | Method and Description |
---|---|
void |
applyMavenRuntime(MavenRuntimeLaunchSupport.VMArguments properties) |
static void |
applyWorkspaceArtifacts(MavenRuntimeLaunchSupport.VMArguments properties) |
static MavenRuntimeLaunchSupport.Builder |
builder(org.eclipse.debug.core.ILaunchConfiguration configuration) |
static MavenRuntimeLaunchSupport |
create(org.eclipse.debug.core.ILaunchConfiguration configuration,
org.eclipse.debug.core.ILaunch launch,
org.eclipse.core.runtime.IProgressMonitor monitor) |
org.eclipse.jdt.launching.IVMRunner |
decorateVMRunner(org.eclipse.jdt.launching.IVMRunner runner) |
java.util.List<java.lang.String> |
getBootClasspath()
Bootstrap classpath of the Maven runtime, normally only contains classworlds jar.
|
java.io.File |
getClassworldConfFile()
Location of classworld configuration file, i.e.
|
java.lang.String |
getLocation()
MAVEN_HOME or equivalent location of the Maven runtime.
|
java.lang.String |
getSettings() |
java.lang.String |
getVersion() |
MavenRuntimeLaunchSupport.VMArguments |
getVMArguments() |
private final AbstractMavenRuntime runtime
private final MavenLauncherConfigurationHandler cwconf
private final boolean resolveWorkspaceArtifacts
private final java.io.File cwconfFile
MavenRuntimeLaunchSupport(AbstractMavenRuntime runtime, MavenLauncherConfigurationHandler cwconf, java.io.File cwconfFile, boolean resolveWorkspaceArtifacts)
public static MavenRuntimeLaunchSupport.Builder builder(org.eclipse.debug.core.ILaunchConfiguration configuration) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static MavenRuntimeLaunchSupport create(org.eclipse.debug.core.ILaunchConfiguration configuration, org.eclipse.debug.core.ILaunch launch, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public java.lang.String getLocation()
public java.io.File getClassworldConfFile()
public java.util.List<java.lang.String> getBootClasspath()
public java.lang.String getSettings()
public java.lang.String getVersion()
public MavenRuntimeLaunchSupport.VMArguments getVMArguments()
public void applyMavenRuntime(MavenRuntimeLaunchSupport.VMArguments properties)
public static void applyWorkspaceArtifacts(MavenRuntimeLaunchSupport.VMArguments properties)
public org.eclipse.jdt.launching.IVMRunner decorateVMRunner(org.eclipse.jdt.launching.IVMRunner runner)