tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@locus.apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/task ApacheConfig.java
Date Tue, 08 Feb 2000 12:49:39 GMT
rubys       00/02/08 04:49:39

  Modified:    src/share/org/apache/tomcat/task ApacheConfig.java
  Log:
  Fix tomcat-apache.conf to work on Windows
  
  Revision  Changes    Path
  1.3       +3 -2      jakarta-tomcat/src/share/org/apache/tomcat/task/ApacheConfig.java
  
  Index: ApacheConfig.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/task/ApacheConfig.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ApacheConfig.java	2000/02/03 23:05:28	1.2
  +++ ApacheConfig.java	2000/02/08 12:49:38	1.3
  @@ -92,7 +92,7 @@
   	    FileWriter configW=new FileWriter( tomcatHome + APACHE_CONFIG);
   	    PrintWriter pw=new PrintWriter( configW );
   
  -	    if( System.getProperty( "os.name" ).equalsIgnoreCase("windows") ) {
  +	    if( System.getProperty( "os.name" ).toLowerCase().indexOf("windows") >= 0 ) {
   		pw.println("LoadModule jserv_module modules/ApacheModuleJServ.dll");
   	    } else {
   		// XXX XXX change it to mod_jserv_${os.name}.so, put all so in tomcat
  @@ -126,7 +126,8 @@
   		    // assert path.startsWith( "/" )
   
   		    // Static files will be served by Apache
  -		    pw.println("Alias " + path + " " + tomcatHome + "/webapps" + path);
  +		    pw.println("Alias " + path + " " + 
  +                               FileUtil.patch(tomcatHome + "/webapps" + path));
   
   		    // Dynamic /servet pages go to tomcat
   		    pw.println("ApJServMount " + path +"/servlet" + " " + path);
  
  
  

Mime
View raw message