Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 49108 invoked from network); 11 Feb 2003 18:54:14 -0000 Received: from hplb.hpl.hp.com (192.6.10.2) by daedalus.apache.org with SMTP; 11 Feb 2003 18:54:14 -0000 Received: from snowy.hpl.hp.com (snowy.hpl.hp.com [15.144.94.243]) by hplb.hpl.hp.com (8.12.1/8.12.1/HP Labs Bristol relay) with ESMTP id h1BIs88v001342 for ; Tue, 11 Feb 2003 18:54:08 GMT Received: from ranier (ranier.cv.hp.com [15.87.25.18]) by snowy.hpl.hp.com with SMTP (8.7.6/8.7.3 SMKit7.0) id SAA24459 for ; Tue, 11 Feb 2003 18:54:04 GMT Message-ID: <007701c2d1fe$ff0ff750$1219570f@ranier> From: "Steve Loughran" To: "Ant Users List" References: <3997D874A598D51190A70002A56BC995080EBD7D@TOCOMEXC17> Subject: Re: Jspc and timestamp Date: Tue, 11 Feb 2003 10:54:21 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-MailScanner: Found to be clean X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ----- Original Message ----- From: "ROSSEL Olivier" To: Sent: Tuesday, February 11, 2003 03:57 Subject: Jspc and timestamp > Hi everybody. > I began Ant just two hours ago (with the bible of Mr Hatcher and Loughran). > > Well, it is very nice :-) > > My first FAQ on this list is the following: > JspC is the task to compile JSPs. > Well, it works a bit like javac except that it does not check for > timestamps. > So a JspC task always recompiles all the pages. > > Is it a feature? Well, on my computer it takes ages. > So being able to check the timestamp for each page would be a great > benefit. > It seems that using can help. > > If I understand correctly, can tell me : > "No JSP has changed" or "At least one JSP has changed." > So you can trigger JspC only when one or more JSPs changed. > Am I right? > > There is no system to have JspC to behave like javac? > And check for the each timestamp separately? JspC is currently very broken on Ant1.5.1, somewhat fixed in CVS; we may pull those fixes into Ant1.5.2 JspC does check for timestamps, buts its rules on how *.jsp mapped to *.java were only applicable in Tomcat 4.0.x; somebody changed the rules again for tomcat4.1.x. In CVS we have added a new 'compiler' for Tomcat4.1 that knows the new rules. Even so there is still another outstanding defect, that is the directory structures arent handled properly -though they are if you use the webapp option (which only works properly in CVS, again) FYI, what I do nowadays is deploy then run httpunit over the target pages; this integrates jsp compilation with testing, and so addresses two problems simulatenously.