Return-Path: Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 51924 invoked by uid 500); 22 Aug 2003 05:59:55 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 51894 invoked from network); 22 Aug 2003 05:59:54 -0000 Received: from dnsinet.rzf-nrw.de (193.109.238.66) by daedalus.apache.org with SMTP; 22 Aug 2003 05:59:54 -0000 Received: from z011104.bk.fin.local (z011104.bk.fin.local [193.109.238.140]) by dnsinet.rzf-nrw.de (8.12.9/8.12.9) with ESMTP id h7M5xbg8018070 for ; Fri, 22 Aug 2003 07:59:38 +0200 Received: by z011104.bk.fin.local with Internet Mail Service (5.5.2653.19) id ; Fri, 22 Aug 2003 07:59:38 +0200 Message-ID: <879A5AD5DD0ED511891F0003473A9B5608FF6DFD@Z011004> From: Jan.Materne@rzf.fin-nrw.de To: user@ant.apache.org Subject: RE: stripping out whitespace from JSPs at build time Date: Fri, 22 Aug 2003 07:59:38 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C36872.91E99270" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C36872.91E99270 Content-Type: text/plain; charset="iso-8859-1" On February there was a thread about that. http://marc.theaimsgroup.com/?l=ant-user&m=104620735729390&w=2 "Removing whitespace in the code" These links could be interesting for you: - Use mod_gzip for compressing http://marc.theaimsgroup.com/?l=ant-user&m=104620735729390&w=2 - Small solution written in perl http://marc.theaimsgroup.com/?l=ant-user&m=104620769829880&w=2 - Task to compress size http://marc.theaimsgroup.com/?l=ant-user&m=104620811830570&w=2 - Maybe Jacson has now something for that http://marc.theaimsgroup.com/?l=ant-user&m=104624767302817&w=2 http://jacson.sf.net - http://marc.theaimsgroup.com/?l=ant-user&m=104624864103798&w=2 - compress HTML (not JSP) http://marc.theaimsgroup.com/?l=ant-user&m=104626881026509&w=2 - perl solution integrated into ant http://marc.theaimsgroup.com/?l=ant-user&m=104629180802128&w=2 Does that help? Jan > -----Original Message----- > From: Ken.Liu@bmwna.com [mailto:Ken.Liu@bmwna.com] > Sent: Friday, August 22, 2003 12:13 AM > To: user@ant.apache.org > Subject: stripping out whitespace from JSPs at build time > > > Hi - > > I'm looking for an Ant task (or something) that I can use to > strip out the > whitespace in JSPs at build time in order to reduce the size > of the HTML > sent to the client. > > My JSPs are nicely formatted for readability, but this results in a > significant amount of unecessary overhead in the HTML. Normally this > wouldn't be too much of a problem, but I have certain pages > that are pretty > big, and I can end up with over 200k of spaces and tabs in > the HTML which > don't get rendered in the browser anyways. I'd like to be able to > preprocess my JSPs before packaging the WAR in order to avoid manually > unformatting the code (and thus eliminate maintainability of > the JSPs). > > Thanks > > Ken > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > ------_=_NextPart_001_01C36872.91E99270--