tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler Compiler.java
Date Wed, 07 Jul 2004 16:29:10 GMT
remm        2004/07/07 09:29:10

  Modified:    jasper2/src/share/org/apache/jasper/compiler Compiler.java
  Log:
  - Add an extra flag to make development mode (the default) faster, which could be useful
(some are also
    dynamically generating JSPs).
  - Let me know if this causes problems.
  
  Revision  Changes    Path
  1.90      +7 -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.89
  retrieving revision 1.90
  diff -u -r1.89 -r1.90
  --- Compiler.java	1 Jul 2004 09:44:27 -0000	1.89
  +++ Compiler.java	7 Jul 2004 16:29:10 -0000	1.90
  @@ -515,6 +515,11 @@
           boolean outDated = false;
           String jsp = ctxt.getJspFile();
   
  +        if ((jsw != null) && ((jsw.getLastModificationTest() + 2000) 
  +            > System.currentTimeMillis())) {
  +            return false;
  +        }
  +        
           long jspRealLastModified = 0;
           try {
               URL jspUrl = ctxt.getResource(jsp);
  @@ -560,7 +565,8 @@
           if( jsw==null ) {
               return outDated;
           }
  -
  +        jsw.setLastModificationTest(System.currentTimeMillis());
  +        
           List depends = jsw.getDependants();
           if (depends == null) {
               return outDated;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message