Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 26223 invoked from network); 26 Feb 2003 08:20:53 -0000 Received: from mail01.ina.de (HELO ina.de) (159.51.231.15) by daedalus.apache.org with SMTP; 26 Feb 2003 08:20:53 -0000 Received: from de010021 (lx00034.ina.de [159.51.231.12]) by ina.de (8.9.3+Sun/8.9.1) with SMTP id JAA28283 for ; Wed, 26 Feb 2003 09:21:03 +0100 (MET) Received: From ina-de0103.ina.de ([159.51.6.62]) by de010021 (WebShield SMTP v4.5 MR1a); id 1046247661968; Wed, 26 Feb 2003 09:21:01 +0100 Received: by INA-DE0103.ina.de with Internet Mail Service (5.5.2653.19) id ; Wed, 26 Feb 2003 09:21:01 +0100 Message-ID: <68C4F996365AD31190ED00902751CF9C03B37645@INA-DE0104.ina.de> From: "Nestel, Frank IZ/HZA-IC4" To: "'Ant Users List'" Cc: "'sangi_helen@users.sourceforge.net'" Subject: AW: Removing whitespace in the code Date: Wed, 26 Feb 2003 09:20:59 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N This would be another application for the Jacson task (http://jacson.sf.net). Unfortunately I'm not sure it is ready for=20 this yet. But it wouldn't be to hard to include. Guess this is less than 1 cent. Frank > -----Urspr=FCngliche Nachricht----- > Von: Lee, Michael.M [mailto:Michael.M.Lee@westgroup.com]=20 > Gesendet: Dienstag, 25. Februar 2003 21:55 > An: 'Ant Users List' > Betreff: RE: Removing whitespace in the code >=20 >=20 > Ok, so i was asking a little different question. >=20 > What I'm trying to optimize is HTML files. We are trying to=20 > cut down the time that take to send a html file to a user. =20 > In order to do that, we thought it will be better to get rid=20 > of whitespace in html. we have done that manually before but=20 > i heard there is a way to do this in ANT. >=20 > is it true? >=20 > Thanks for your attention! >=20 > Michael. >=20 > -----Original Message----- > From: Mike Ayers [mailto:mayers@NEVIKNETWORKS.com] > Sent: Tuesday, February 25, 2003 2:08 PM > To: Ant Users List > Subject: RE: Removing whitespace in the code >=20 >=20 >=20 > > From: Lee, Michael.M [mailto:Michael.M.Lee@westgroup.com] > > Sent: Tuesday, February 25, 2003 11:41 AM >=20 > > When I write code, I like to put indentations on every line > > so it's easy to > > read ( i think everyone does). However, when i package the=20 > code, the > > whitespace used for indentation takes up to 30-40 percent of=20 > > the file size! > >=20 > > So i would like to get rid of all the white space before i=20 > build the=20 > > application. > >=20 > > is it possible with Ant? if so, how should i do that? >=20 > I'm having trouble following this. Do you believe that=20 > preremoving whitespace will make your application compile=20 > faster? Any difference would be too small to notice. Are=20 > you packaging the source code? If you use a packaging=20 > method, such as jar, zip or tar.gz, that has compression as=20 > an integral part, the whitespace will be highly compressible=20 > and have little effect on your final file size, as well as=20 > keep your files readable. Please give consideration as to=20 > whether this is necessary. >=20 > If you still wish to strip out those spaces, you will=20 > probably have to do some customization, unless I missed=20 > something. The closest I could get was the LoadFile task=20 > with a custom FilterReader, but I still couldn't figure out=20 > how to write the property back to a file. >=20 >=20 > /|/|ike >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org >=20