tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jk/java/org/apache/jk/apr TomcatStarter.java
Date Thu, 18 Apr 2002 19:07:49 GMT
costin      02/04/18 12:07:49

  Modified:    jk/java/org/apache/jk/apr TomcatStarter.java
  Log:
  Redirect stdout for JNI mode.
  
  Err goes to error.log, but out is lost.
  
  Revision  Changes    Path
  1.2       +5 -0      jakarta-tomcat-connectors/jk/java/org/apache/jk/apr/TomcatStarter.java
  
  Index: TomcatStarter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/apr/TomcatStarter.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TomcatStarter.java	18 Apr 2002 17:41:51 -0000	1.1
  +++ TomcatStarter.java	18 Apr 2002 19:07:49 -0000	1.2
  @@ -26,6 +26,10 @@
           System.err.println("TomcatStarter: main()");
           
           try {
  +            // Destroy out, it is lost since the server is detached
  +            // err goes to error.log
  +            System.setOut(System.err);
  +            
               // Find the class
               Class c=null;
               for( int i=0; i<mainClasses.length; i++ ) {
  @@ -57,6 +61,7 @@
               Class argClass=args.getClass();
               Method m=c.getMethod( "main", new Class[] {argClass} );
               m.invoke( c, new Object[] { args } );
  +            System.out.println("TomcatStarter: Done");
           } catch( Throwable t ) {
               t.printStackTrace(System.err);
           }
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message