public abstract class AbstractJavaProjectConfigurator extends AbstractProjectConfigurator
Modifier and Type | Field and Description |
---|---|
static String |
COMPILER_PLUGIN_ARTIFACT_ID |
static String |
COMPILER_PLUGIN_GROUP_ID |
protected static String |
DEFAULT_COMPILER_LEVEL |
protected static LinkedHashMap<String,String> |
ENVIRONMENTS |
protected static List<String> |
SOURCES |
protected static List<String> |
TARGETS |
ATTR_CLASS, ATTR_ID, ATTR_NAME, markerManager, maven, mavenConfiguration, projectManager
Constructor and Description |
---|
AbstractJavaProjectConfigurator() |
Modifier and Type | Method and Description |
---|---|
protected void |
addCustomClasspathEntries(org.eclipse.jdt.core.IJavaProject javaProject,
IClasspathDescriptor classpath) |
protected void |
addJavaNature(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IProgressMonitor monitor) |
protected void |
addJavaProjectOptions(Map<String,String> options,
ProjectConfigurationRequest request,
org.eclipse.core.runtime.IProgressMonitor monitor) |
protected void |
addJREClasspathContainer(IClasspathDescriptor classpath,
String environmentId) |
protected void |
addMavenClasspathContainer(IClasspathDescriptor classpath) |
protected void |
addProjectSourceFolders(IClasspathDescriptor classpath,
ProjectConfigurationRequest request,
org.eclipse.core.runtime.IProgressMonitor monitor) |
void |
configure(ProjectConfigurationRequest request,
org.eclipse.core.runtime.IProgressMonitor monitor)
Configures Eclipse project passed in ProjectConfigurationRequest, using information from Maven project and other
configuration request parameters
|
protected List<org.apache.maven.plugin.MojoExecution> |
getCompilerMojoExecutions(ProjectConfigurationRequest request,
org.eclipse.core.runtime.IProgressMonitor monitor) |
protected String |
getExecutionEnvironmentId(Map<String,String> options) |
protected org.eclipse.core.resources.IFolder |
getFolder(org.eclipse.core.resources.IProject project,
String absolutePath) |
protected org.eclipse.core.resources.IContainer |
getOutputLocation(ProjectConfigurationRequest request,
org.eclipse.core.resources.IProject project) |
protected org.eclipse.core.runtime.IPath |
getProjectRelativePath(org.eclipse.core.resources.IProject project,
String absolutePath) |
protected void |
invokeJavaProjectConfigurators(IClasspathDescriptor classpath,
ProjectConfigurationRequest request,
org.eclipse.core.runtime.IProgressMonitor monitor) |
protected boolean |
isCompileExecution(org.apache.maven.plugin.MojoExecution execution) |
protected boolean |
isTestCompileExecution(org.apache.maven.plugin.MojoExecution execution) |
void |
unconfigure(ProjectConfigurationRequest request,
org.eclipse.core.runtime.IProgressMonitor monitor)
Removes Maven specific configuration from the project passed in ProjectConfigurationRequest
|
addNature, addNature, assertHasNature, equals, getBuildParticipant, getConfiguratorExecutions, getId, getMojoExecutions, getName, getParameterValue, getParameterValue, hasConfigurationChanged, hashCode, mavenProjectChanged, mavenProjectChanged, setInitializationData, setMarkerManager, setMavenConfiguration, setProjectManager, toString
public static final String COMPILER_PLUGIN_ARTIFACT_ID
public static final String COMPILER_PLUGIN_GROUP_ID
protected static final LinkedHashMap<String,String> ENVIRONMENTS
protected static final String DEFAULT_COMPILER_LEVEL
public void configure(ProjectConfigurationRequest request, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
AbstractProjectConfigurator
Should be implemented by subclass
configure
in class AbstractProjectConfigurator
request
- a project configuration requestmonitor
- a progress monitororg.eclipse.core.runtime.CoreException
protected org.eclipse.core.resources.IContainer getOutputLocation(ProjectConfigurationRequest request, org.eclipse.core.resources.IProject project)
protected void addJavaNature(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
protected void addCustomClasspathEntries(org.eclipse.jdt.core.IJavaProject javaProject, IClasspathDescriptor classpath) throws org.eclipse.jdt.core.JavaModelException
org.eclipse.jdt.core.JavaModelException
protected void invokeJavaProjectConfigurators(IClasspathDescriptor classpath, ProjectConfigurationRequest request, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
protected void addJREClasspathContainer(IClasspathDescriptor classpath, String environmentId)
protected void addMavenClasspathContainer(IClasspathDescriptor classpath)
protected void addProjectSourceFolders(IClasspathDescriptor classpath, ProjectConfigurationRequest request, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
protected boolean isTestCompileExecution(org.apache.maven.plugin.MojoExecution execution)
protected boolean isCompileExecution(org.apache.maven.plugin.MojoExecution execution)
protected void addJavaProjectOptions(Map<String,String> options, ProjectConfigurationRequest request, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
protected List<org.apache.maven.plugin.MojoExecution> getCompilerMojoExecutions(ProjectConfigurationRequest request, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public void unconfigure(ProjectConfigurationRequest request, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
AbstractProjectConfigurator
unconfigure
in class AbstractProjectConfigurator
request
- a project un-configuration requestmonitor
- a progress monitororg.eclipse.core.runtime.CoreException
protected org.eclipse.core.resources.IFolder getFolder(org.eclipse.core.resources.IProject project, String absolutePath)
protected org.eclipse.core.runtime.IPath getProjectRelativePath(org.eclipse.core.resources.IProject project, String absolutePath)
Copyright © 2005–2015 Sonatype, Inc.. All rights reserved.