public abstract class AbstractBuildParticipant2 extends InternalBuildParticipant2
Pre-configuration build runs as part of project import before invocation of
AbstractProjectConfigurator.configure(ProjectConfigurationRequest, IProgressMonitor)
(hence
"pre-configuration"). The main usecase for pre-configuration build is to allow changes to MavenProject mutable state,
i.e. sources roots, resources and properties.
Participants of pre-configure build are not expected to make any changes to workspace resources or filesystem. To allow direct execution of maven plugins compatible with workspace incremental build, special "no changes" build context is used during pre-configuration build.
Modifier and Type | Field and Description |
---|---|
static int |
PRECONFIGURE_BUILD
Build kind constant indicating a pre-configuration build request.
|
AUTO_BUILD, CLEAN_BUILD, FULL_BUILD, INCREMENTAL_BUILD
Constructor and Description |
---|
AbstractBuildParticipant2() |
Modifier and Type | Method and Description |
---|---|
abstract Set<org.eclipse.core.resources.IProject> |
build(int kind,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method is called during workspace full or incremental build.
|
protected Map<String,String> |
getArgs()
Returns a table of builder-specific arguments as described in IncrementalProjectBuilder#build.
|
callOnEmptyDelta, clean, getBuildContext, getDelta, getMavenProjectFacade, getSession
public static final int PRECONFIGURE_BUILD
public abstract Set<org.eclipse.core.resources.IProject> build(int kind, org.eclipse.core.runtime.IProgressMonitor monitor) throws Exception
AbstractBuildParticipant
build
in class AbstractBuildParticipant
kind
- the kind of build being requested, AbstractBuildParticipant.FULL_BUILD
, AbstractBuildParticipant.AUTO_BUILD
, AbstractBuildParticipant.INCREMENTAL_BUILD
or PRECONFIGURE_BUILD
.Exception
protected Map<String,String> getArgs()
PRECONFIGURE_BUILD
.getArgs
in class InternalBuildParticipant2
Copyright © 2005–2015 Sonatype, Inc.. All rights reserved.