Schedules newCommand
to be run after any remaining commands.
Schedules newCommands
to be run after any remaining commands.
Schedules command
to be run before any remaining commands.
Schedules commands
to be run before any remaining commands.
Registers a new exit hook, which will run when sbt exits or restarts.
The application base directory, which is not necessarily the current working directory.
Sets the next command processing action to be to rotate the global log and continue executing commands.
Sets the next command processing action to be to continue processing the next command.
Sets the next command processing action to be to exit with a zero exit code if ok
is true and a nonzero exit code if ok
if false.
Marks the currently executing command as failing.
Marks the currently executing command as failing. This triggers failure handling by the command processor. See also State.onFailure
Gets the value associated with key
from the custom attributes map.
Returns true if key
exists in the custom attributes map, false if it does not exist.
Sets the next command processing action to be to keep the previous log and continue executing commands.
Evaluates the provided expression with a JVM-wide and machine-wide lock on file
.
The Logger used for general command logging.
Sets the value associated with key
in the custom attributes map.
Reboots sbt.
Reboots sbt. A reboot restarts execution from the entry point of the launcher.
A reboot is designed to be as close as possible to actually restarting the JVM without actually doing so.
Because the JVM is not restarted, JVM exit hooks are not run.
State.exitHooks should be used instead and those will be run before rebooting.
If full
is true, the boot directory is deleted before starting again.
This command is currently implemented to not return, but may be implemented in the future to only reboot at the next command processing step.
Restarts sbt without dropping loaded Scala classes.
Restarts sbt without dropping loaded Scala classes. It is a shallower restart than reboot
.
This method takes a snapshot of the remaining commands and will resume executing those commands after reload.
This means that any commands added to this State will be dropped.
Removes the key
and any associated value from the custom attributes map.
Runs any defined exitHooks and then clears them.
Sets the next command processing action to do.
Sets the value associated with key
in the custom attributes map by transforming the current value.
(Since version 0.11.0) Use setNext
Convenience methods for State transformations and operations.