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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to