remm        2004/10/05 00:24:33

  Modified:    jasper2/src/share/org/apache/jasper/resources
                        LocalStrings.properties
               jasper2/src/share/org/apache/jasper
                        EmbeddedServletOptions.java
               jasper2/src/share/org/apache/jasper/compiler Compiler.java
               webapps/docs jasper-howto.xml
  Log:
  - modificationTestInterval is now a value in seconds, as per Jan's suggestion. 
However, the default is not 0, since I'm fairly certain that there
    are people who use the default config, and probably think Jasper is slow.
  
  Revision  Changes    Path
  1.5       +2 -2      
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/resources/LocalStrings.properties
  
  Index: LocalStrings.properties
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/resources/LocalStrings.properties,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- LocalStrings.properties   5 Oct 2004 07:12:45 -0000       1.4
  +++ LocalStrings.properties   5 Oct 2004 07:24:33 -0000       1.5
  @@ -143,7 +143,7 @@
   jsp.warning.sendErrToClient=Warning: Invalid value for the initParam 
sendErrToClient. Will use the default value of \"false\"
   jsp.warning.classDebugInfo=Warning: Invalid value for the initParam classdebuginfo. 
Will use the default value of \"false\"
   jsp.warning.checkInterval=Warning: Invalid value for the initParam checkInterval. 
Will use the default value of \"300\" seconds
  -jsp.warning.modificationTestInterval=Warning: Invalid value for the initParam 
modificationTestInterval. Will use the default value of \"4000\" milliseconds
  +jsp.warning.modificationTestInterval=Warning: Invalid value for the initParam 
modificationTestInterval. Will use the default value of \"4\" seconds
   jsp.warning.development=Warning: Invalid value for the initParam development. Will 
use the default value of \"true\"
   jsp.warning.fork=Warning: Invalid value for the initParam fork. Will use the 
default value of \"true\"
   jsp.warning.reloading=Warning: Invalid value for the initParam reloading. Will use 
the default value of \"true\"
  
  
  
  1.17      +1 -1      
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/EmbeddedServletOptions.java
  
  Index: EmbeddedServletOptions.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/EmbeddedServletOptions.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- EmbeddedServletOptions.java       5 Oct 2004 07:07:00 -0000       1.16
  +++ EmbeddedServletOptions.java       5 Oct 2004 07:24:33 -0000       1.17
  @@ -167,7 +167,7 @@
       /**
        * Modification test interval.
        */
  -    private int modificationTestInterval = 4000;
  +    private int modificationTestInterval = 4;
       
       /**
        * Is generation of X-Powered-By response header enabled/disabled?
  
  
  
  1.95      +1 -1      
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Compiler.java
  
  Index: Compiler.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Compiler.java,v
  retrieving revision 1.94
  retrieving revision 1.95
  diff -u -r1.94 -r1.95
  --- Compiler.java     5 Oct 2004 01:46:00 -0000       1.94
  +++ Compiler.java     5 Oct 2004 07:24:33 -0000       1.95
  @@ -324,7 +324,7 @@
           if ((jsw != null)
               && (ctxt.getOptions().getModificationTestInterval() > 0)
               && ((jsw.getLastModificationTest()
  -                    + ctxt.getOptions().getModificationTestInterval()) 
  +                    + (ctxt.getOptions().getModificationTestInterval() * 1000)) 
                       > System.currentTimeMillis())) {
               return false;
           }
  
  
  
  1.21      +2 -2      jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml
  
  Index: jasper-howto.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- jasper-howto.xml  5 Oct 2004 07:12:45 -0000       1.20
  +++ jasper-howto.xml  5 Oct 2004 07:24:33 -0000       1.21
  @@ -119,8 +119,8 @@
   
   <li><strong>modificationTestInterval</strong> - Checks for modification for a given
   JSP file (and all its dependent files) will be performed only once every specified 
amount
  -of milliseconds. Setting this to -1 will cause the JSP to be checked on every 
access.
  -Default is <code>4000</code> milliseconds.</li>
  +of milliseconds. Setting this to 0 will cause the JSP to be checked on every access.
  +Default is <code>4</code> seconds.</li>
   
   <li><strong>reloading</strong> - Should Jasper check for modified JSPs?
   <code>true</code> or <code>false</code>, default <code>false</code>.</li>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to