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

  Modified:    jk/java/org/apache/jk/apr TomcatStarter.java
  Log:
  Use CatalinaService, thanks Remy :-)
  
  Temporarily redirect out/err in some hardcoded paths, need
  to do real config ( apache detaches from out ).
  
  Revision  Changes    Path
  1.3       +8 -3      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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TomcatStarter.java	18 Apr 2002 19:07:49 -0000	1.2
  +++ TomcatStarter.java	18 Apr 2002 23:00:04 -0000	1.3
  @@ -17,7 +17,7 @@
       String args[];
       
       public static String mainClasses[]={ "org.apache.tomcat.startup.Main",
  -                                         "org.apache.catalina.startup.Bootstrap" };
  +                                         "org.apache.catalina.startup.BootstrapService"
};
       
       // If someone has time - we can also guess the classpath and do other
       // fancy guessings.
  @@ -28,8 +28,13 @@
           try {
               // Destroy out, it is lost since the server is detached
               // err goes to error.log
  -            System.setOut(System.err);
  -            
  +            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);
  +
               // Find the class
               Class c=null;
               for( int i=0; i<mainClasses.length; i++ ) {
  
  
  

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