ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Stevens <>
Subject Re: I need the comments in the scripts to be omitted at the time of building war files
Date Fri, 03 Jun 2011 07:45:02 GMT
Run the file through a javascript compressor and include the
compressed versions in the war instead of the originals?
For example, the YUI Compressor
( can be run with a <java>
task, or there's an Ant task wrapper for it at


On 2 June 2011 06:13, karthikeyan <> wrote:
> I have noted that JavaScript files that contain lots of comments take longer
> (and more bandwidth) to fetch from the web server to the client's browser
> session. By stripping out the comments at build time the files will load
> quicker and increase the speed of rendering. Can any one let me know the way
> i can omit adding comments at the time of building war files

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message