in src/main/groovy/grails/plugins/quartz/config/TriggersConfigBuilder.groovy [119:143]
private prepareCommonTriggerAttributes(Map triggerAttributes) {
def prepare = prepareTriggerAttribute.curry(triggerAttributes)
if(triggerAttributes[Constants.NAME] == null) {
triggerAttributes[Constants.NAME] = "${jobName}${triggerNumber++}".toString()
}
prepare(Constants.GROUP, Constants.DEFAULT_TRIGGERS_GROUP.toString())
prepare(
Constants.START_DELAY,
Constants.DEFAULT_START_DELAY,
{
if (!(it instanceof Integer || it instanceof Long)) {
throw new IllegalArgumentException(
"startDelay trigger property in the job class ${jobName} must be Integer or Long"
)
}
if (((Number) it).longValue() < 0) {
throw new IllegalArgumentException(
"startDelay trigger property in the job class ${jobName} is negative (possibly integer overflow error)"
)
}
}
)
}