Default Groovy delegate for configuring commands of evaluator components. It wraps
a
EvalTask
, and dispatches methods as follows:
To resolve "foo", this delegate first looks for a method "setFoo", then "addFoo", such that one
of the following holds:
- The method takes the parameters specified.
- The parameters specified can be converted into appropriate types
for the method by wrapping strings with
File
objects and instantiating
classes with their default constructors.
- The method takes a single parameter annotated with the
BuiltBy
annotation. This command is constructed using a constructor that matches the arguments
provided, except that the last argument is ommitted if it is a Closure
. If the
last argument is a Closure
, it is used to configure the command with an appropriate
delegate before the object is built.