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 23:13:59 GMT
costin      02/04/18 16:13:59

  Modified:    jk/java/org/apache/jk/apr TomcatStarter.java
  Log:
  Just redirect out to stderr - that's saved.
  
  Revision  Changes    Path
  1.4       +3 -8      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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TomcatStarter.java	18 Apr 2002 23:00:04 -0000	1.3
  +++ TomcatStarter.java	18 Apr 2002 23:13:59 -0000	1.4
  @@ -26,14 +26,9 @@
           System.err.println("TomcatStarter: main()");
           
           try {
  -            // Destroy out, it is lost since the server is detached
  -            // err goes to error.log
  -            String out="/tmp/out";
  -            String err="/tmp/err";
  -            PrintStream outS=new PrintStream(new FileOutputStream(out));
  -            System.setOut(outS);
  -            PrintStream errS=new PrintStream(new FileOutputStream(err));
  -            System.setErr(errS);
  +            System.setOut( System.err );
  +            System.err.println("TomcatStarter: err");
  +            System.out.println("TomcatStarter: out");
   
               // Find the class
               Class c=null;
  
  
  

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