trait ExecuteProgress2 extends ExecuteProgress[Task]
Tracks command execution progress. In addition to ExecuteProgress, this interface adds command start and end events, and gives access to the sbt.State at the beginning and end of each command.
Command progress callbacks are wrapping task progress callbacks. That is, the beforeCommand
callback will be called before the initial
callback from ExecuteProgress, and the
afterCommand
callback will be called after the stop
callback from ExecuteProgress.
- Alphabetic
- By Inheritance
- ExecuteProgress2
- ExecuteProgress
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
afterAllCompleted(results: RMap[Task, Result]): Unit
All tasks have completed with the final
results
provided.All tasks have completed with the final
results
provided.- Definition Classes
- ExecuteProgress
-
abstract
def
afterCommand(cmd: String, result: Either[Throwable, State]): Unit
Called after a command finished execution.
Called after a command finished execution.
- cmd
The command string.
- result
Left in case of an error. If the command cannot be parsed, it will be signalled as a ParseException with a detailed message. If the command was cancelled by the user, as sbt.Cancelled. If the command succeeded, Right with the new state after command execution.
-
abstract
def
afterCompleted[A](task: Task[A], result: Result[A]): Unit
Notifies that
task
has completed.Notifies that
task
has completed. The task's work is done with a finalresult
. Any tasks called bytask
have completed.- Definition Classes
- ExecuteProgress
-
abstract
def
afterReady(task: Task[_]): Unit
Notifies that all of the dependencies of
task
have completed andtask
is therefore ready to run.Notifies that all of the dependencies of
task
have completed andtask
is therefore ready to run. The task has not been scheduled on a thread yet.- Definition Classes
- ExecuteProgress
-
abstract
def
afterRegistered(task: Task[_], allDeps: Iterable[Task[_]], pendingDeps: Iterable[Task[_]]): Unit
Notifies that a
task
has been registered in the system for execution.Notifies that a
task
has been registered in the system for execution. The dependencies oftask
areallDeps
and the subset of those dependencies that have not completed arependingDeps
.- Definition Classes
- ExecuteProgress
-
abstract
def
afterWork[A](task: Task[A], result: Either[Task[A], Result[A]]): Unit
Notifies that the work for
task
work has finished.Notifies that the work for
task
work has finished. The task may have computed the next task to run, in which caseresult
contains that next task wrapped in Left. If the task produced a value or terminated abnormally,result
provides that outcome wrapped in Right. The ultimate result of a task is provided to thecompleted
method. This is called from the thread the task executes on, unlike most other methods in this callback. It is immediately called after the task's work is complete with minimal intervening executor overhead.- Definition Classes
- ExecuteProgress
-
abstract
def
beforeCommand(cmd: String, state: State): Unit
Called before a command starts processing.
Called before a command starts processing. The command has not yet been parsed.
- cmd
The command string
- state
The sbt.State before the command starts executing.
-
abstract
def
beforeWork(task: Task[_]): Unit
Notifies that the work for
task
is starting after this call returns.Notifies that the work for
task
is starting after this call returns. This is called from the thread the task executes on, unlike most other methods in this callback. It is called immediately before the task's work starts with minimal intervening executor overhead.- Definition Classes
- ExecuteProgress
-
abstract
def
initial(): Unit
- Definition Classes
- ExecuteProgress
-
abstract
def
stop(): Unit
Notifies that either all tasks have finished or cancelled.
Notifies that either all tasks have finished or cancelled.
- Definition Classes
- ExecuteProgress
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()