avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: jakarta-avalon-cornerstone/apps/overlord/src/java/org/apache/avalon/overlord TimeTriggerFactory.java
Date Fri, 01 Mar 2002 14:10:53 GMT
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:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message