donaldp     01/04/18 06:22:56

  Modified:    src/compat/org/apache/avalon/util/cli AbstractMain.java
  Log:
  Updated compat code ... not sure if it is worth keeping this about ???
  
  Revision  Changes    Path
  1.2       +9 -9      
jakarta-avalon/src/compat/org/apache/avalon/util/cli/AbstractMain.java
  
  Index: AbstractMain.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-avalon/src/compat/org/apache/avalon/util/cli/AbstractMain.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AbstractMain.java 2001/04/02 01:33:28     1.1
  +++ AbstractMain.java 2001/04/18 13:22:56     1.2
  @@ -8,16 +8,16 @@
   package org.apache.avalon.util.cli;
   
   import java.util.List;
  -import org.apache.avalon.AbstractLoggable;
  +import org.apache.avalon.logger.AbstractLoggable;
   
   /**
    * Abstract main entry point.
  - * 
  + *
    * @author <a href="mailto:[EMAIL PROTECTED]">Peter Donald</a>
  - * @deprecated This class while convenient led to code that was 
  - * less than understandable. It is better to implement the 
  + * @deprecated This class while convenient led to code that was
  + * less than understandable. It is better to implement the
    * functionality manually.
  - * 
  + *
    */
   public abstract class AbstractMain
       extends AbstractLoggable
  @@ -32,7 +32,7 @@
       protected String getExecutionCommand()
       {
           return "java " + getClass().getName() + " [options]";
  -    }    
  +    }
   
       /**
        * Display usage report.
  @@ -59,11 +59,11 @@
        */
       public void execute( final String[] args )
           throws Exception
  -    { 
  +    {
           m_options = createCLOptions();
           final CLArgsParser parser = new CLArgsParser( args, m_options );
  -        
  -        if( null != parser.getErrorString() ) 
  +
  +        if( null != parser.getErrorString() )
           {
               System.err.println( "Error: " + parser.getErrorString() );
               return;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to