Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 1566 invoked from network); 27 May 2005 11:47:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 May 2005 11:47:26 -0000 Received: (qmail 42999 invoked by uid 500); 27 May 2005 11:47:25 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 42941 invoked by uid 500); 27 May 2005 11:47:24 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 42927 invoked by uid 99); 27 May 2005 11:47:24 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from whisky.linagora.com (HELO whisky.linagora.com) (62.23.27.55) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 27 May 2005 04:47:23 -0700 Received: from localhost (localhost [127.0.0.1]) by whisky.linagora.com (Postfix) with ESMTP id 3728610A127 for ; Fri, 27 May 2005 11:46:41 +0000 (UTC) Received: from whisky.linagora.com ([127.0.0.1]) by localhost (whisky [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14935-04 for ; Fri, 27 May 2005 13:46:34 +0200 (CEST) Received: from [192.168.0.111] (sgi2.linagora.com [195.68.36.75]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by whisky.linagora.com (Postfix) with ESMTP id 8E0B41085B4 for ; Fri, 27 May 2005 13:46:34 +0200 (CEST) Message-ID: <42970897.20204@apache.org> Date: Fri, 27 May 2005 13:46:31 +0200 From: Stephane Bailliez Organization: Apache Software Foundation User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Developers List Subject: Re: [offtopic] jspc? References: <4296D547.40606@it.fts-vn.com> In-Reply-To: <4296D547.40606@it.fts-vn.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at linagora.com X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Kev Jackson wrote: > Is there any benefit at all from running jspc before building the war? As it has been said before, it serves 2 folds: making sure that your jsp compile (better catch it now than in production...but of course you have thorough functional tests :) and saves the hassle of the first hit in your container. Some folks use it creatively when they want to hide their jsp layer as well. The jsp are all compiled and obfuscated and all the .jsp files are zero'ed > > I'm coming down on the side of useless except for catching JSP errors > before deployment, but is that even the case? > > Also I'm fairly certain that there was a comment recently about the > jspc being not exactly great (broken across different java versions IIRC) You have to use Tomcat Jasper task to compile. The task sucks big time however and is not flexible in the selection. Be careful to name your fragment as .jspf or .inc or whatever suites you so that jspc does not try to compile them. (if you use jasper to compile) Depending on how many jsp you have you may also realise that the jsp->java process takes an awful long time. I have had about 450 jsps to compile, the jsp->java was taking ~12 minutes on a P4 1.7GHz which is all but decent. Compilation itself of these files was performed in about a 1 minute. I profiled Jasper and realized that it is a bit brute force..basically if you have an include in 450 jsps it will be parsed 450 times. So things get worse when you have include of include of include. Your taglibs xml files will also be parsed 450 times.. I tried to investigate and started to have decent results but due to lack of time it is still in my todo list. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org