saker.build Documentation TaskDoc JavaDoc Packages
  1. saker.build
  2. Scripting language
  3. Built-in tasks
  4. abort()

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.")
}