tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jk/java/org/apache/jk/apr TomcatStarter.java
Date Sun, 07 Jul 2002 11:09:01 GMT
mturk       2002/07/07 04:09:01

  Modified:    jk/java/org/apache/jk/apr TomcatStarter.java
  Log:
  Fix the reporting of 'No class found'  error message on the stderr.
  
  Revision  Changes    Path
  1.12      +4 -1      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.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- TomcatStarter.java	1 Jul 2002 23:12:33 -0000	1.11
  +++ TomcatStarter.java	7 Jul 2002 11:09:00 -0000	1.12
  @@ -26,6 +26,7 @@
       
       public static void main( String args[] ) {
           System.err.println("TomcatStarter: main()");
  +        int nClasses = 0;
           
           try {
               AprImpl.jniMode();            
  @@ -39,13 +40,15 @@
                       continue;
                   }
                   if( c!= null ) {
  +                    ++nClasses;
                       Thread startThread=new Thread( new TomcatStarter(c, args));
                       c=null;
                       startThread.start();
                       break;
                   }
               }
  -            System.err.println("No class found  ");
  +            if (nClasses==0)
  +                System.err.println("No class found  ");
   
           } 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