* support for checking user-defined pre-condition

This commit is contained in:
Reinhard Pointner 2012-12-10 18:07:03 +00:00
parent 58b23a36ad
commit d82c37a3fe
1 changed files with 5 additions and 0 deletions

View File

@ -6,6 +6,11 @@ def failOnError = _args.conflict == 'fail'
_args.bindings?.each{ _log.finest("Parameter: $it.key = $it.value") } _args.bindings?.each{ _log.finest("Parameter: $it.key = $it.value") }
args.each{ _log.finest("Argument: $it") } args.each{ _log.finest("Argument: $it") }
// check user-defined pre-condition
if (tryQuietly{ ut_state != ut_state_allow }) {
throw new Exception("Invalid state: ut_state = $ut_state (expected $ut_state_allow)")
}
// enable/disable features as specified via --def parameters // enable/disable features as specified via --def parameters
def subtitles = tryQuietly{ subtitles.toBoolean() } def subtitles = tryQuietly{ subtitles.toBoolean() }
def artwork = tryQuietly{ artwork.toBoolean() } def artwork = tryQuietly{ artwork.toBoolean() }