nacho 2002/07/01 16:12:33 Modified: jk/java/org/apache/jk/apr TomcatStarter.java AprImpl.java Log: * set the stdout and stderr files using statics methods from AprImpl Revision Changes Path 1.11 +2 -12 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.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- TomcatStarter.java 30 Jun 2002 09:59:11 -0000 1.10 +++ TomcatStarter.java 1 Jul 2002 23:12:33 -0000 1.11 @@ -24,21 +24,11 @@ // If someone has time - we can also guess the classpath and do other // fancy guessings. - public static void main( String args[], String stdout, String stderr ) { + public static void main( String args[] ) { System.err.println("TomcatStarter: main()"); try { - try{ - if( stdout!=null ){ - System.setOut( new PrintStream(new FileOutputStream(stdout))); - } - if( stderr!=null ){ - System.setErr( new PrintStream(new FileOutputStream(stderr))); - } - }catch (Throwable th){ - } - AprImpl.jniMode(); - + AprImpl.jniMode(); // Find the class Class c=null; for( int i=0; i<mainClasses.length; i++ ) { 1.24 +21 -0 jakarta-tomcat-connectors/jk/java/org/apache/jk/apr/AprImpl.java Index: AprImpl.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/apr/AprImpl.java,v retrieving revision 1.23 retrieving revision 1.24 diff -u -r1.23 -r1.24 --- AprImpl.java 30 Jun 2002 09:59:02 -0000 1.23 +++ AprImpl.java 1 Jul 2002 23:12:33 -0000 1.24 @@ -68,6 +68,27 @@ this.nativeSo=nativeSo; } + /** Sets the System.out stream */ + + public static void setOut( String filename ) { + try{ + if( filename !=null ){ + System.setOut( new PrintStream(new FileOutputStream(filename ))); + } + }catch (Throwable th){ + } + } + /** Sets the System.err stream */ + + public static void setErr( String filename ) { + try{ + if( filename !=null ){ + System.setErr( new PrintStream(new FileOutputStream(filename ))); + } + }catch (Throwable th){ + } + } + // -------------------- Apr generic utils -------------------- /** Initialize APR */
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>