Return-Path: Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 88680 invoked from network); 15 Jun 2000 21:12:05 -0000 Received: from unknown (HELO s1.servlets.net) (root@209.221.135.4) by locus.apache.org with SMTP; 15 Jun 2000 21:12:05 -0000 Received: from gefionsoftware.com (lsanca1-ar8-069-161.biz.dsl.gtei.net [4.35.69.161]) by s1.servlets.net (8.9.3/8.9.3) with ESMTP id OAA09746 for ; Thu, 15 Jun 2000 14:12:00 -0700 Message-ID: <3949477A.511F9038@gefionsoftware.com> Date: Thu, 15 Jun 2000 14:15:38 -0700 From: Hans Bergsten Organization: Gefion software X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en-US,en,sv MIME-Version: 1.0 To: tomcat-dev@jakarta.apache.org Subject: Re: bad assumption: JSP Recompilation based on class timestamp? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Chris Higgins wrote: > > The jasper compiler checks to see if a jsp needs to be recompiled based on > if the *class* file on the filesystem is older than the JSP file. This > doesn't exactly work in VisualAge since VAJ produces a class file in the > repository (not on the filesystem proper). > > I know I am biased in this particular situation, but should Jasper assume > that the java compiler (which doesn't necessarily have to be Sun's) produces > a .class file in the target directory? That seems like something the > compiler MAY do, but doesn't HAVE TO. After we run the compiler, its out of > Jasper's hands. Shouldn't the date comparison be against the generated java > file instead of the class file? > > I know that I need this fix for using Tomcat in VisualAge (otherwise every > reload causes the compilation step), and I'm sure others would like to do > the same thing. I've already made the change on my code base but wondered > if it should be rolled into Tomcat. The problem with comparing to the generated .java file is that this file is only kept if "keepGenerated" is specified. I agree that it would be nice with some other method than comparing to the .class file in the file system (since a file system is not a given), but I'm afraid I don't have a solution to suggest at this time. Hans -- Hans Bergsten hans@gefionsoftware.com Gefion Software http://www.gefionsoftware.com