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 Sat, 01 Dec 2001 06:33:54 GMT
colus       01/11/30 22:33:54

  Modified:    apps/overlord/src/java/org/apache/avalon/overlord
                        TimeTriggerFactory.java
  Log:
  Arrange line break.
  
  Revision  Changes    Path
  1.3       +21 -20    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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TimeTriggerFactory.java	2001/11/28 02:37:09	1.2
  +++ TimeTriggerFactory.java	2001/12/01 06:33:54	1.3
  @@ -33,35 +33,36 @@
           TimeTrigger trigger;
           if ( "periodic".equals( type ) )
           {
  -            final int offset = conf.getChild( "offset", true )
  -                .getValueAsInteger( 0 );
  -            final int period = conf.getChild( "period", true )
  -                .getValueAsInteger( -1 );
  +            final int offset =
  +                conf.getChild( "offset", true ).getValueAsInteger( 0 );
  +            final int period =
  +                conf.getChild( "period", true ).getValueAsInteger( -1 );
   
               trigger = new PeriodicTimeTrigger( offset, period );
           }
           else if ( "cron".equals( type ) )
           {
  -            final int minute = conf.getChild( "minute", true )
  -                .getValueAsInteger( -1 );
  -            final int hour = conf.getChild( "hour", true )
  -                .getValueAsInteger( -1 );
  -            final int day = conf.getChild( "day", true )
  -                .getValueAsInteger( -1 );
  -            final int month = conf.getChild( "month", true )
  -                .getValueAsInteger( -1 );
  -            final int year = conf.getChild( "year", true )
  -                .getValueAsInteger( -1 );
  -            final boolean dayOfWeek = conf.getChild( "day", true )
  -                .getAttributeAsBoolean( "week", false );
  +            final int minute =
  +                conf.getChild( "minute", true ).getValueAsInteger( -1 );
  +            final int hour =
  +                conf.getChild( "hour", true ).getValueAsInteger( -1 );
  +            final int day =
  +                conf.getChild( "day", true ).getValueAsInteger( -1 );
  +            final int month =
  +                conf.getChild( "month", true ).getValueAsInteger( -1 );
  +            final int year =
  +                conf.getChild( "year", true ).getValueAsInteger( -1 );
  +            final boolean dayOfWeek =
  +                conf.getChild( "day", true ).getAttributeAsBoolean( "week",
  +                                                                    false );
   
  -            trigger = new CronTimeTrigger( minute, hour,
  -                                           day, month, year, dayOfWeek );
  +            trigger = new CronTimeTrigger( minute, hour, day, month, year,
  +                                           dayOfWeek );
           }
           else
           {
  -            final String msg = REZ.getString( "overlord.error.trigger.unknown",
  -                                              type );
  +            final String msg =
  +                REZ.getString( "overlord.error.trigger.unknown", type );
               throw new ConfigurationException( msg );
           }
   
  
  
  

--
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