saker.build icon indicating copy to clipboard operation
saker.build copied to clipboard

Warn about unrecognized build task input parameters

Open Sipkab opened this issue 5 years ago • 0 comments

If an input parameter is specified for a build task, and that task doesn't recognize that parameter, a warning should be issued during build.

This should be done by enhancing the TaskUtils.initParametersOfTask method to warn about the unrecognized parameters.

This enhancement is only applicable if a task uses the default parameter initializing behaviour specified by TaskUtils (I.e. the @SakerInput and related annotations). If a task initializes the parameters manually by overriding ParameterizableTask.initParameters, then it is the responsibility of the task to issue warnings.

The issued warnings should report the position of the build task in the script.

Sipkab avatar Dec 31 '19 19:12 Sipkab