tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@locus.apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/startup Tomcat.java
Date Fri, 31 Mar 2000 22:34:58 GMT
craigmcc    00/03/31 14:34:58

  Modified:    src/share/org/apache/tomcat/startup Tomcat.java
  Log:
  Allow "-home {path}" or "-h {path}" as an argument to
  org.apache.tomcat.startup.Tomcat so that you can set "tomcat.home" from
  the command line.
  PR:148
  Submitted by:	Larry.Isaacs@sas.com
  
  Revision  Changes    Path
  1.20      +5 -1      jakarta-tomcat/src/share/org/apache/tomcat/startup/Tomcat.java
  
  Index: Tomcat.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/startup/Tomcat.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- Tomcat.java	2000/03/25 03:35:28	1.19
  +++ Tomcat.java	2000/03/31 22:34:58	1.20
  @@ -240,7 +240,11 @@
   	    } else if (arg.equals("-f") || arg.equals("-config")) {
   		i++;
   		if( i < args.length )
  -		    configFile = args[i]; 
  +		    configFile = args[i];
  +	    } else if (arg.equals("-h") || arg.equals("-home")) {
  +		i++;
  +		if (i < args.length)
  +		    System.getProperties().put("tomcat.home", args[i]);
   	    }
   	}
   	return true;
  
  
  

Mime
View raw message