You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by co...@apache.org on 2002/03/01 15:10:53 UTC

cvs commit: jakarta-avalon-cornerstone/apps/overlord/src/java/org/apache/avalon/overlord TimeTriggerFactory.java

colus       02/03/01 06:10:53

  Modified:    apps/overlord/src/java/org/apache/avalon/overlord
                        TimeTriggerFactory.java
  Log:
  Fix misused of getChild.
  
  Revision  Changes    Path
  1.4       +6 -6      jakarta-avalon-cornerstone/apps/overlord/src/java/org/apache/avalon/overlord/TimeTriggerFactory.java
  
  Index: TimeTriggerFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-cornerstone/apps/overlord/src/java/org/apache/avalon/overlord/TimeTriggerFactory.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TimeTriggerFactory.java	1 Dec 2001 06:33:54 -0000	1.3
  +++ TimeTriggerFactory.java	1 Mar 2002 14:10:53 -0000	1.4
  @@ -43,17 +43,17 @@
           else if ( "cron".equals( type ) )
           {
               final int minute =
  -                conf.getChild( "minute", true ).getValueAsInteger( -1 );
  +                conf.getChild( "minute" ).getValueAsInteger( -1 );
               final int hour =
  -                conf.getChild( "hour", true ).getValueAsInteger( -1 );
  +                conf.getChild( "hour" ).getValueAsInteger( -1 );
               final int day =
  -                conf.getChild( "day", true ).getValueAsInteger( -1 );
  +                conf.getChild( "day" ).getValueAsInteger( -1 );
               final int month =
  -                conf.getChild( "month", true ).getValueAsInteger( -1 );
  +                conf.getChild( "month" ).getValueAsInteger( -1 );
               final int year =
  -                conf.getChild( "year", true ).getValueAsInteger( -1 );
  +                conf.getChild( "year" ).getValueAsInteger( -1 );
               final boolean dayOfWeek =
  -                conf.getChild( "day", true ).getAttributeAsBoolean( "week",
  +                conf.getChild( "day" ).getAttributeAsBoolean( "week",
                                                                       false );
   
               trigger = new CronTimeTrigger( minute, hour, day, month, year,
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>