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-phoenix/src/java/org/apache/avalon/phoenix/frontends CLIMain.java
Date Thu, 21 Feb 2002 13:28:50 GMT
colus       02/02/21 05:28:50

  Modified:    src/java/org/apache/avalon/phoenix/frontends CLIMain.java
  Log:
  Print stack trace with CascadingThrowable.
  
  Revision  Changes    Path
  1.22      +7 -6      jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/frontends/CLIMain.java
  
  Index: CLIMain.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/frontends/CLIMain.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- CLIMain.java	7 Feb 2002 07:06:02 -0000	1.21
  +++ CLIMain.java	21 Feb 2002 13:28:50 -0000	1.22
  @@ -18,6 +18,7 @@
   import org.apache.avalon.framework.logger.LogKitLogger;
   import org.apache.avalon.framework.logger.Logger;
   import org.apache.avalon.framework.logger.LogEnabled;
  +import org.apache.avalon.framework.ExceptionUtil;
   import org.apache.avalon.phoenix.Constants;
   import org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor;
   import org.apache.avalon.phoenix.interfaces.Embeddor;
  @@ -59,9 +60,9 @@
       /**
        * Main entry point.
        *
  -     * @param args[] the command line arguments
  +     * @param args the command line arguments
        */
  -    public int main( final String args[], 
  +    public int main( final String[] args,
                        final Hashtable data,
                        final boolean blocking )
       {
  @@ -97,7 +98,7 @@
        *
        * @exception Exception if an error occurs
        */
  -    private void execute( final Parameters parameters, 
  +    private void execute( final Parameters parameters,
                             final Hashtable data,
                             final boolean blocking )
           throws Exception
  @@ -113,7 +114,7 @@
               m_hook = new ShutdownHook( this );
               Runtime.getRuntime().addShutdownHook( m_hook );
           }
  -        
  +
           // If an Observer is present in the data object, then add it as an observer for
           //  m_observable
           Observer observer = (Observer)data.get( Observer.class.getName() );
  @@ -274,7 +275,7 @@
                   m_embeddor = null;
               }
           }
  -        
  +
           // Notify any observers that Phoenix is shutting down
           setChanged();
           notifyObservers( "shutdown" );
  @@ -292,7 +293,7 @@
           System.out.println( "--- Message ---" );
           System.out.println( throwable.getMessage() );
           System.out.println( "--- Stack Trace ---" );
  -        throwable.printStackTrace( System.out );
  +        System.out.println( ExceptionUtil.printStackTrace( throwable ) );
           System.out.println( "---------------------------------------------------------"
);
           System.out.println( REZ.getString( "main.exception.footer" ) );
   
  
  
  

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