saker.build Documentation TaskDoc JavaDoc Packages
Field annotation for marking the field as an input parameter for the enclosing task.

See TaskUtils.initParametersOfTask(TaskContext, Object, Map<String, ? extends TaskIdentifier>) for the algorithm of converting the parameters to the appropriate types.

Methods
public boolean
required() default false
Gets if the parameter is required.
public String[]
value() default {}
The name(s) of the parameter to use.
public abstract boolean required() default false
Gets if the parameter is required.

If a parameter is required, but not present, an exception will be thrown.

false by default.

true if the parameter is required.
public abstract String[] value() default {}
The name(s) of the parameter to use.

Multiple names can be specified for the field.

By default, the name of the corresponding field will be used.

The names(s) of the parameter.