ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SimonRichards...@hbosts.com
Subject RE: Removing whitespace in the code
Date Wed, 26 Feb 2003 08:53:23 GMT
Sounds like a job for ReplaceRegExp (optional task)

> -----Original Message-----
> From: Lee, Michael.M [mailto:Michael.M.Lee@westgroup.com]
> Sent: 25 February 2003 21:17
> To: 'Ant Users List'
> Subject: RE: Removing whitespace in the code
> 
> 
> I have found this link.
> http://cvs.apache.org/viewcvs/xml-forrest/tools/centipede/src/
> java/Attic/IZP
> ressHtmlCompressTask.java?hideattic=0
> 
> I was wondering if anyone has used this before, if so, how 
> can i use this?
> 
> 
> 
> -----Original Message-----
> From: Alexey Solofnenko [mailto:A.Solofnenko@mdl.com]
> Sent: Tuesday, February 25, 2003 3:15 PM
> To: 'Ant Users List'
> Subject: RE: Removing whitespace in the code
> 
> 
> Something like that can help:
> 
> perl -e "local($/)=undef; $_=<>; s/\s{2,}/ /sg; print $_" 
> <src_file.html
> >dst_file.html
> 
> - Alexey.
> 
> --
> { http://trelony.cjb.net/   } Alexey N. Solofnenko
> Pleasant Hill, CA (GMT-8 usually)
> 
> 
> -----Original Message-----
> From: Nathan Christiansen [mailto:Nathan_Christiansen@tni.com] 
> Sent: Tuesday, February 25, 2003 1:09 PM
> To: Ant Users List
> Subject: RE: Removing whitespace in the code
> 
> We had the same problem.
> 
> Since we were running an Apache web server, we decided to use mod_gzip
> <http://sourceforge.net/projects/mod-gzip/> as well as 
> whitespace reduction,
> and use of browser cacheable external files. The use of 
> mod_gzip cut our
> slow connection, long distance, large HTML file (100K+) 
> download time in
> half.
> 
> However if there is a custom task out there that removes 
> extra whitespace
> from JSP/HTML files, I would sure be interested.
> 
> Unfortunately, I don't have the time to write one.
> 
> -- Nathan Christiansen
>    Tahitian Noni International
>    http://www.tahitiannoni.com
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 

-- 

------------------------------------------------------------------------------
For more information on HBOS Treasury Services, please visit http://www.HBOSTS.com

Or for details of our online FX & Deposit services, please go to http://www.HBOSdeal.com

HBOS Treasury Services plc is part of the HBOS Group, which also includes Halifax plc and
Bank of Scotland.
Registered Office: 33 Old Broad Street, London EC2N 1HZ. Registered No. 2692890. Registered
in England.
Regulated by the Financial Services Authority.

The information contained in this message is confidential and is intended for the addressee
only. If you have received this message in error or there are any problems please notify the
originator immediately. The unauthorised use, disclosure, copying or alteration of this message
is strictly forbidden. This mail and any attachments have been scanned for viruses prior to
leaving the HBOS Treasury Services plc network. HBOS Treasury Services plc will not be liable
for direct, special, indirect or consequential damages arising from alteration of the contents
of this message by a third party or as a result of any virus being passed on.

HBOS Treasury Services plc reserves the right to monitor and record e-mail messages sent to
and from this address for the purposes of investigating or detecting any unauthorised use
of its system and ensuring its effective operation.

==============================================================================


Mime
View raw message