tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@locus.apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/context DefaultCMSetter.java
Date Thu, 02 Nov 2000 21:14:39 GMT
costin      00/11/02 13:14:39

  Modified:    src/share/org/apache/tomcat/context DefaultCMSetter.java
  Log:
  Moved "DEFAULT_WORK_DIR" from ContextManager to an interceptor.
  The setting can be changed ( if tomcat is integrated in other products
  for example ), and "core" shouldn't depend on what happens to be used
  in the standalone version.
  
  Revision  Changes    Path
  1.58      +4 -1      jakarta-tomcat/src/share/org/apache/tomcat/context/DefaultCMSetter.java
  
  Index: DefaultCMSetter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/context/DefaultCMSetter.java,v
  retrieving revision 1.57
  retrieving revision 1.58
  diff -u -r1.57 -r1.58
  --- DefaultCMSetter.java	2000/10/12 22:41:50	1.57
  +++ DefaultCMSetter.java	2000/11/02 21:14:36	1.58
  @@ -78,6 +78,9 @@
    * @author costin@dnt.ro
    */
   public final class DefaultCMSetter extends BaseInterceptor {
  +    /** Default work dir, relative to home
  +     */
  +    public static final String DEFAULT_WORK_DIR="work";
   
       public DefaultCMSetter() {
       }
  @@ -130,7 +133,7 @@
   	// Adjust work dir
   	String workDir=cm.getWorkDir();
   	if( workDir==null ) {
  -	    workDir= ContextManager.DEFAULT_WORK_DIR;
  +	    workDir= DEFAULT_WORK_DIR;
   	}
   
   	if( ! FileUtil.isAbsolute( workDir )) {
  
  
  

Mime
View raw message