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