public class JpsProjectTaskRunner extends ProjectTaskRunner
ProjectTaskRunner.Result
Modifier and Type | Field and Description |
---|---|
static Key<java.lang.Object> |
EXECUTION_SESSION_ID_KEY |
static Key<JpsBuildData> |
JPS_BUILD_DATA_KEY |
EP_NAME
Constructor and Description |
---|
JpsProjectTaskRunner() |
Modifier and Type | Method and Description |
---|---|
boolean |
canRun(ProjectTask projectTask) |
static java.util.Map<java.lang.Class<? extends ProjectTask>,java.util.List<ProjectTask>> |
groupBy(java.util.Collection<? extends ProjectTask> tasks) |
boolean |
isFileGeneratedEventsSupported()
The flag indicates if the
ProjectTaskRunner supports reporting an information about generated files during execution or not. |
void |
run(Project project,
ProjectTaskContext context,
ProjectTaskNotification callback,
java.util.Collection<? extends ProjectTask> tasks) |
canRun, createExecutionEnvironment, run, run
public static final Key<JpsBuildData> JPS_BUILD_DATA_KEY
public static final Key<java.lang.Object> EXECUTION_SESSION_ID_KEY
public void run(Project project, ProjectTaskContext context, ProjectTaskNotification callback, java.util.Collection<? extends ProjectTask> tasks)
run
in class ProjectTaskRunner
public boolean canRun(ProjectTask projectTask)
canRun
in class ProjectTaskRunner
public boolean isFileGeneratedEventsSupported()
ProjectTaskRunner
ProjectTaskRunner
supports reporting an information about generated files during execution or not.
The fine-grained events per generated files allow greatly improve IDE performance for some activities like fast hotswap reload after incremental compilation.
The support means responsibility to send ProjectTaskContext.fileGenerated(java.lang.String, java.lang.String)
events per each generated file
or at least supply effective output roots containing generated files using the ProjectTaskContext.addDirtyOutputPathsProvider(java.util.function.Supplier<? extends java.util.Collection<java.lang.String>>)
method
if per-file events are not possible.isFileGeneratedEventsSupported
in class ProjectTaskRunner
ProjectTaskRunner
supports reporting an information about generated files during this runner tasks execution, false otherwisepublic static java.util.Map<java.lang.Class<? extends ProjectTask>,java.util.List<ProjectTask>> groupBy(java.util.Collection<? extends ProjectTask> tasks)