saker.build Documentation TaskDoc JavaDoc

abort()

The abort() task can be used to fail the currently running build execution with an optional message.

Parameters

The following parameters are used by the task:

ParameterDescription
unnamedOptional message to print to the output and include in the thrown exception.

Task result

The task has no result, never returns successfully.

Example

if $condition < 123 {
	abort("Condition failed.")
}