public final class ProjectTaskManagerImpl extends ProjectTaskManager
ProjectTaskManager.ResultEMPTY_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) |
getInstancepublic ProjectTaskManagerImpl(Project project)
public Promise<ProjectTaskManager.Result> build(Module [] modules)
ProjectTaskManagerbuild in class ProjectTaskManagermodules - modules to buildpublic Promise<ProjectTaskManager.Result> rebuild(Module [] modules)
rebuild in class ProjectTaskManagerpublic Promise<ProjectTaskManager.Result> compile(VirtualFile [] files)
ProjectTaskManagercompile in class ProjectTaskManagerfiles - 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 ProjectTaskManagerpublic Promise<ProjectTaskManager.Result> rebuild(ProjectModelBuildableElement [] buildableElements)
rebuild in class ProjectTaskManagerpublic Promise<ProjectTaskManager.Result> buildAllModules()
ProjectTaskManagerbuildAllModules in class ProjectTaskManagerpublic Promise<ProjectTaskManager.Result> rebuildAllModules()
ProjectTaskManagerrebuildAllModules in class ProjectTaskManagerpublic ProjectTask createAllModulesBuildTask(boolean isIncrementalBuild, Project project)
createAllModulesBuildTask in class ProjectTaskManagerpublic ProjectTask createModulesBuildTask(Module module, boolean isIncrementalBuild, boolean includeDependentModules, boolean includeRuntimeDependencies)
createModulesBuildTask in class ProjectTaskManagerpublic ProjectTask createModulesBuildTask(Module[] modules, boolean isIncrementalBuild, boolean includeDependentModules, boolean includeRuntimeDependencies)
createModulesBuildTask in class ProjectTaskManagerpublic ProjectTask createBuildTask(boolean isIncrementalBuild, ProjectModelBuildableElement... buildableElements)
createBuildTask in class ProjectTaskManagerpublic Promise<ProjectTaskManager.Result> run(ProjectTask projectTask)
run in class ProjectTaskManagerpublic Promise<ProjectTaskManager.Result> run(ProjectTaskContext context, ProjectTask projectTask)
run in class ProjectTaskManagerpublic 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()ProjectTaskManagerbuildAllModules in class ProjectTaskManagercallback - a notification callback, or null if no notifications needed@Deprecated public void rebuildAllModules(ProjectTaskNotification callback)
rebuildAllModules()ProjectTaskManagerrebuildAllModules in class ProjectTaskManagercallback - a notification callback, or null if no notifications needed@Deprecated public void build(Module [] modules, ProjectTaskNotification callback)
build(Module[])ProjectTaskManagerbuild in class ProjectTaskManagermodules - 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 ProjectTaskManagermodules - modules to rebuildcallback - a notification callback, or null if no notifications needed@Deprecated public void compile(VirtualFile [] files, ProjectTaskNotification callback)
compile(VirtualFile[])ProjectTaskManagercompile in class ProjectTaskManagerfiles - 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