* @throws Exception
*/
public static void main(String[] args) throws Exception {
System.out.println(new Date(System.currentTimeMillis()) + " : Cron test wait (1 minute) ...");
Timer timer = new Timer();
Scheduler scheduler = new Scheduler(timer);
//<minutes> <hours> <days of month> <months> <days of week>
String cronDate = "* * * * *"; // all minutes.
scheduler.scheduleEvent(new CronEvent("cron_test", cronDate), new CronTestTask());
System.in.read();
}