Minor cleanups and fixes in helma.util.CronJob:
* Send sub-properties of app properties that start with "cron." so we don't have to do the filtering ourselves. * Be tolerant of whitespace in cron job time specs (e.g. cron.foo.minutes = 0, 15, 30, 45)
This commit is contained in:
parent
3e54355ef5
commit
87722c3b8d
1 changed files with 1 additions and 1 deletions
|
@ -1588,7 +1588,7 @@ public final class Application implements Runnable {
|
||||||
*/
|
*/
|
||||||
private void executeCronJobs() {
|
private void executeCronJobs() {
|
||||||
// loop-local cron job data
|
// loop-local cron job data
|
||||||
List jobs = CronJob.parse(props);
|
List jobs = CronJob.parse(props.getSubProperties("cron."));
|
||||||
Date date = new Date();
|
Date date = new Date();
|
||||||
|
|
||||||
jobs.addAll(customCronJobs.values());
|
jobs.addAll(customCronJobs.values());
|
||||||
|
|
Loading…
Add table
Reference in a new issue