public abstract class ProjectTaskManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ProjectTaskManager.Result |
Modifier and Type | Field and Description |
---|---|
static ProjectTask[] |
EMPTY_TASKS_ARRAY |
protected Project |
myProject |
Constructor and Description |
---|
ProjectTaskManager(Project project) |
Modifier and Type | Method and Description |
---|---|
abstract Promise<ProjectTaskManager.Result> |
build(Module... modules)
Build modules and all modules these modules depend on recursively.
|
abstract void |
build(Module [] modules,
ProjectTaskNotification callback)
Deprecated.
use
build(Module[]) |
abstract Promise<ProjectTaskManager.Result> |
build(ProjectModelBuildableElement... buildableElements) |
abstract void |
build(ProjectModelBuildableElement [] buildableElements,
ProjectTaskNotification callback)
Deprecated.
|
abstract Promise<ProjectTaskManager.Result> |
buildAllModules()
Build all modules with modified files and all modules with files that depend on them all over the project.
|
abstract void |
buildAllModules(ProjectTaskNotification callback)
Deprecated.
|
abstract Promise<ProjectTaskManager.Result> |
compile(VirtualFile... files)
Compile a set of files.
|
abstract void |
compile(VirtualFile [] files,
ProjectTaskNotification callback)
Deprecated.
|
abstract ProjectTask |
createAllModulesBuildTask(boolean isIncrementalBuild,
Project project) |
abstract ProjectTask |
createBuildTask(boolean isIncrementalBuild,
ProjectModelBuildableElement... artifacts) |
abstract ProjectTask |
createModulesBuildTask(Module[] modules,
boolean isIncrementalBuild,
boolean includeDependentModules,
boolean includeRuntimeDependencies) |
abstract ProjectTask |
createModulesBuildTask(Module module,
boolean isIncrementalBuild,
boolean includeDependentModules,
boolean includeRuntimeDependencies) |
static ProjectTaskManager |
getInstance(Project project) |
abstract Promise<ProjectTaskManager.Result> |
rebuild(Module... modules) |
abstract void |
rebuild(Module [] modules,
ProjectTaskNotification callback)
Deprecated.
|
abstract Promise<ProjectTaskManager.Result> |
rebuild(ProjectModelBuildableElement... buildableElements) |
abstract void |
rebuild(ProjectModelBuildableElement [] buildableElements,
ProjectTaskNotification callback)
Deprecated.
|
abstract Promise<ProjectTaskManager.Result> |
rebuildAllModules()
Rebuild the whole project modules from scratch.
|
abstract void |
rebuildAllModules(ProjectTaskNotification callback)
Deprecated.
|
abstract Promise<ProjectTaskManager.Result> |
run(ProjectTask projectTask) |
abstract Promise<ProjectTaskManager.Result> |
run(ProjectTaskContext context,
ProjectTask projectTask) |
abstract void |
run(ProjectTaskContext context,
ProjectTask projectTask,
ProjectTaskNotification callback)
Deprecated.
|
abstract void |
run(ProjectTask projectTask,
ProjectTaskNotification callback)
Deprecated.
use
run(ProjectTask) |
public static final ProjectTask[] EMPTY_TASKS_ARRAY
protected final Project myProject
public ProjectTaskManager(Project project)
public static ProjectTaskManager getInstance(Project project)
public abstract Promise<ProjectTaskManager.Result> run(ProjectTask projectTask)
public abstract Promise<ProjectTaskManager.Result> run(ProjectTaskContext context, ProjectTask projectTask)
public abstract Promise<ProjectTaskManager.Result> buildAllModules()
public abstract Promise<ProjectTaskManager.Result> rebuildAllModules()
public abstract Promise<ProjectTaskManager.Result> build(Module... modules)
modules
- modules to buildpublic abstract Promise<ProjectTaskManager.Result> rebuild(Module... modules)
public abstract Promise<ProjectTaskManager.Result> compile(VirtualFile... files)
files
- a list of files to compile. If a VirtualFile is a directory, all containing files should be processed.public abstract Promise<ProjectTaskManager.Result> build(ProjectModelBuildableElement... buildableElements)
public abstract Promise<ProjectTaskManager.Result> rebuild(ProjectModelBuildableElement... buildableElements)
public abstract ProjectTask createAllModulesBuildTask(boolean isIncrementalBuild, Project project)
public abstract ProjectTask createModulesBuildTask(Module module, boolean isIncrementalBuild, boolean includeDependentModules, boolean includeRuntimeDependencies)
public abstract ProjectTask createModulesBuildTask(Module[] modules, boolean isIncrementalBuild, boolean includeDependentModules, boolean includeRuntimeDependencies)
public abstract ProjectTask createBuildTask(boolean isIncrementalBuild, ProjectModelBuildableElement... artifacts)
@Deprecated public abstract void run(ProjectTask projectTask, ProjectTaskNotification callback)
run(ProjectTask)
@Deprecated public abstract void run(ProjectTaskContext context, ProjectTask projectTask, ProjectTaskNotification callback)
run(ProjectTaskContext, ProjectTask)
@Deprecated public abstract void buildAllModules(ProjectTaskNotification callback)
buildAllModules()
callback
- a notification callback, or null if no notifications needed@Deprecated public abstract void rebuildAllModules(ProjectTaskNotification callback)
rebuildAllModules()
callback
- a notification callback, or null if no notifications needed@Deprecated public abstract void build(Module [] modules, ProjectTaskNotification callback)
build(Module[])
modules
- modules to buildcallback
- a notification callback, or null if no notifications needed@Deprecated public abstract void rebuild(Module [] modules, ProjectTaskNotification callback)
rebuild(Module[])
modules
- modules to rebuildcallback
- a notification callback, or null if no notifications needed@Deprecated public abstract void compile(VirtualFile [] files, ProjectTaskNotification callback)
compile(VirtualFile[])
files
- a list of files to compile. If a VirtualFile is a directory, all containing files should be processed.callback
- a notification callback, or null if no notifications needed.@Deprecated public abstract void build(ProjectModelBuildableElement [] buildableElements, ProjectTaskNotification callback)
build(ProjectModelBuildableElement[])
@Deprecated public abstract void rebuild(ProjectModelBuildableElement [] buildableElements, ProjectTaskNotification callback)
rebuild(ProjectModelBuildableElement[])