public class MavenLaunchDelegate extends org.eclipse.jdt.launching.JavaLaunchDelegate implements MavenLaunchConstants
Modifier and Type | Field and Description |
---|---|
private MavenLaunchExtensionsSupport |
extensionsSupport |
private org.eclipse.debug.core.ILaunch |
launch |
private static java.lang.String |
LAUNCHER_TYPE |
private static java.lang.String |
LAUNCHER_TYPE3 |
private MavenRuntimeLaunchSupport |
launchSupport |
(package private) static org.slf4j.Logger |
log |
private static org.apache.maven.artifact.versioning.VersionRange |
MAVEN_33PLUS_RUNTIMES |
private org.eclipse.core.runtime.IProgressMonitor |
monitor |
private java.lang.String |
programArguments |
complileErrorProjectPromptStatus, complileErrorPromptStatus, promptStatus, saveScopedDirtyEditors, switchToDebugPromptStatus
ATTR_DEBUG_OUTPUT, ATTR_DISABLED_EXTENSIONS, ATTR_GOALS, ATTR_GOALS_AFTER_CLEAN, ATTR_GOALS_AUTO_BUILD, ATTR_GOALS_CLEAN, ATTR_GOALS_MANUAL_BUILD, ATTR_NON_RECURSIVE, ATTR_OFFLINE, ATTR_POM_DIR, ATTR_PROFILES, ATTR_PROPERTIES, ATTR_RUNTIME, ATTR_SKIP_TESTS, ATTR_THREADS, ATTR_UPDATE_SNAPSHOTS, ATTR_USER_SETTINGS, ATTR_WORKSPACE_RESOLUTION, BUILDER_CONFIGURATION_TYPE_ID, LAUNCH_CONFIGURATION_TYPE_ID, PLUGIN_ID
Constructor and Description |
---|
MavenLaunchDelegate() |
Modifier and Type | Method and Description |
---|---|
void |
appendRuntimeSpecificArguments(java.lang.String runtimeVersion,
MavenRuntimeLaunchSupport.VMArguments arguments,
org.eclipse.debug.core.ILaunchConfiguration configuration)
Not API.
|
private boolean |
applies(java.lang.String runtimeVersion) |
boolean |
buildForLaunch(org.eclipse.debug.core.ILaunchConfiguration configuration,
java.lang.String mode,
org.eclipse.core.runtime.IProgressMonitor monitor) |
private java.io.File |
findMavenProjectBasedir(java.io.File dir) |
private void |
getArgsFromMvnDir(MavenRuntimeLaunchSupport.VMArguments arguments,
org.eclipse.debug.core.ILaunchConfiguration configuration) |
java.lang.String[] |
getClasspath(org.eclipse.debug.core.ILaunchConfiguration configuration) |
java.lang.String[][] |
getClasspathAndModulepath(org.eclipse.debug.core.ILaunchConfiguration configuration) |
protected java.lang.String |
getGoals(org.eclipse.debug.core.ILaunchConfiguration configuration) |
java.lang.String |
getMainTypeName(org.eclipse.debug.core.ILaunchConfiguration configuration) |
private void |
getPreferences(java.lang.StringBuilder sb,
org.eclipse.debug.core.ILaunchConfiguration configuration,
java.lang.String goals)
Construct string with preferences to pass to JVM as system properties
|
java.lang.String |
getProgramArguments(org.eclipse.debug.core.ILaunchConfiguration configuration) |
private void |
getProperties(java.lang.StringBuilder sb,
org.eclipse.debug.core.ILaunchConfiguration configuration)
Construct string with properties to pass to JVM as system properties
|
java.lang.String |
getVMArguments(org.eclipse.debug.core.ILaunchConfiguration configuration) |
org.eclipse.jdt.launching.IVMRunner |
getVMRunner(org.eclipse.debug.core.ILaunchConfiguration configuration,
java.lang.String mode) |
void |
launch(org.eclipse.debug.core.ILaunchConfiguration configuration,
java.lang.String mode,
org.eclipse.debug.core.ILaunch launch,
org.eclipse.core.runtime.IProgressMonitor monitor) |
abort, allowAdvancedSourcelookup, getBootpath, getBootpathExt, getBreakpoints, getBuildOrder, getDefaultWorkingDirectory, getEnvironment, getJavaLibraryPath, getJavaProject, getJavaProjectName, getLaunch, getLaunchManager, getModuleCLIOptions, getProjectsForProblemSearch, getVMArguments, getVMConnectorId, getVMInstall, getVMInstallName, getVMInstallType, getVMInstallTypeId, getVMSpecificAttributesMap, getWorkingDirectory, getWorkingDirectoryPath, handleDebugEvents, isAllowTerminate, isLaunchProblem, isStopInMain, preLaunchCheck, prepareStopInMain, setDefaultSourceLocator, supportsModule, supportsPreviewFeatures, verifyJavaProject, verifyMainTypeName, verifyVMInstall, verifyWorkingDirectory
static final org.slf4j.Logger log
private static final java.lang.String LAUNCHER_TYPE
private static final java.lang.String LAUNCHER_TYPE3
private static final org.apache.maven.artifact.versioning.VersionRange MAVEN_33PLUS_RUNTIMES
private org.eclipse.debug.core.ILaunch launch
private org.eclipse.core.runtime.IProgressMonitor monitor
private java.lang.String programArguments
private MavenRuntimeLaunchSupport launchSupport
private MavenLaunchExtensionsSupport extensionsSupport
public void launch(org.eclipse.debug.core.ILaunchConfiguration configuration, java.lang.String mode, org.eclipse.debug.core.ILaunch launch, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
launch
in interface org.eclipse.debug.core.model.ILaunchConfigurationDelegate
launch
in class org.eclipse.jdt.launching.JavaLaunchDelegate
org.eclipse.core.runtime.CoreException
public org.eclipse.jdt.launching.IVMRunner getVMRunner(org.eclipse.debug.core.ILaunchConfiguration configuration, java.lang.String mode) throws org.eclipse.core.runtime.CoreException
getVMRunner
in class org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate
org.eclipse.core.runtime.CoreException
public java.lang.String getMainTypeName(org.eclipse.debug.core.ILaunchConfiguration configuration)
getMainTypeName
in class org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate
public java.lang.String[] getClasspath(org.eclipse.debug.core.ILaunchConfiguration configuration)
getClasspath
in class org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate
public java.lang.String[][] getClasspathAndModulepath(org.eclipse.debug.core.ILaunchConfiguration configuration) throws org.eclipse.core.runtime.CoreException
getClasspathAndModulepath
in class org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate
org.eclipse.core.runtime.CoreException
public java.lang.String getProgramArguments(org.eclipse.debug.core.ILaunchConfiguration configuration) throws org.eclipse.core.runtime.CoreException
getProgramArguments
in class org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate
org.eclipse.core.runtime.CoreException
public java.lang.String getVMArguments(org.eclipse.debug.core.ILaunchConfiguration configuration) throws org.eclipse.core.runtime.CoreException
getVMArguments
in class org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate
org.eclipse.core.runtime.CoreException
protected java.lang.String getGoals(org.eclipse.debug.core.ILaunchConfiguration configuration) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public boolean buildForLaunch(org.eclipse.debug.core.ILaunchConfiguration configuration, java.lang.String mode, org.eclipse.core.runtime.IProgressMonitor monitor)
buildForLaunch
in interface org.eclipse.debug.core.model.ILaunchConfigurationDelegate2
buildForLaunch
in class org.eclipse.debug.core.model.LaunchConfigurationDelegate
private void getProperties(java.lang.StringBuilder sb, org.eclipse.debug.core.ILaunchConfiguration configuration) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
private void getPreferences(java.lang.StringBuilder sb, org.eclipse.debug.core.ILaunchConfiguration configuration, java.lang.String goals) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public void appendRuntimeSpecificArguments(java.lang.String runtimeVersion, MavenRuntimeLaunchSupport.VMArguments arguments, org.eclipse.debug.core.ILaunchConfiguration configuration) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
private void getArgsFromMvnDir(MavenRuntimeLaunchSupport.VMArguments arguments, org.eclipse.debug.core.ILaunchConfiguration configuration) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
private java.io.File findMavenProjectBasedir(java.io.File dir)
private boolean applies(java.lang.String runtimeVersion)