You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2004/07/21 11:23:32 UTC
cvs commit: cocoon-2.1/src/blocks/cron/java/org/apache/cocoon/components/cron QuartzJobScheduler.java
cziegeler 2004/07/21 02:23:32
Modified: src/blocks/cron/java/org/apache/cocoon/components/cron
QuartzJobScheduler.java
Log:
Funny typo
Revision Changes Path
1.13 +16 -16 cocoon-2.1/src/blocks/cron/java/org/apache/cocoon/components/cron/QuartzJobScheduler.java
Index: QuartzJobScheduler.java
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/blocks/cron/java/org/apache/cocoon/components/cron/QuartzJobScheduler.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- QuartzJobScheduler.java 11 Mar 2004 22:05:12 -0000 1.12
+++ QuartzJobScheduler.java 21 Jul 2004 09:23:32 -0000 1.13
@@ -654,32 +654,32 @@
}
/**
- * Create the tiggers
+ * Create the triggers
*
- * @param tiggers array of tigger configuration elements
+ * @param triggers array of trigger configuration elements
*
* @throws ConfigurationException thrown in case of configuration failures
*/
- private void createTriggers(final Configuration[] tiggers)
+ private void createTriggers(final Configuration[] triggers)
throws ConfigurationException {
- for (int i = 0; i < tiggers.length; i++) {
- String cron = tiggers[i].getChild("cron").getValue(null);
+ for (int i = 0; i < triggers.length; i++) {
+ String cron = triggers[i].getChild("cron").getValue(null);
if (null == cron) {
- final String seconds = tiggers[i].getChild("seconds").getValue("0");
- final String minutes = tiggers[i].getChild("minutes").getValue("*");
- final String hours = tiggers[i].getChild("hours").getValue("*");
- final String days = tiggers[i].getChild("days").getValue("*");
- final String months = tiggers[i].getChild("months").getValue("*");
- final String weekdays = tiggers[i].getChild("weekdays").getValue("?");
- final String years = tiggers[i].getChild("years").getValue("*");
+ final String seconds = triggers[i].getChild("seconds").getValue("0");
+ final String minutes = triggers[i].getChild("minutes").getValue("*");
+ final String hours = triggers[i].getChild("hours").getValue("*");
+ final String days = triggers[i].getChild("days").getValue("*");
+ final String months = triggers[i].getChild("months").getValue("*");
+ final String weekdays = triggers[i].getChild("weekdays").getValue("?");
+ final String years = triggers[i].getChild("years").getValue("*");
cron = seconds + " " + minutes + " " + hours + " " + days + " " + months + " " + weekdays + " " +
years;
}
try {
- addJob(tiggers[i].getAttribute("name"), tiggers[i].getAttribute("target"), cron,
- tiggers[i].getAttributeAsBoolean("concurrent-runs", true));
+ addJob(triggers[i].getAttribute("name"), triggers[i].getAttribute("target"), cron,
+ triggers[i].getAttributeAsBoolean("concurrent-runs", true));
} catch (final CascadingException ce) {
throw new ConfigurationException("failed adding trigger to scheduler", ce);
}