ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander E Genaud" ...@pobox.com>
Subject Jscompress Javascript compression Task
Date Thu, 16 Mar 2006 18:22:35 GMT
Hello,

I've written a javascript compression task, combining the Replace task
with some Apache licensed code from

https://dwr.dev.java.net/source/browse/dwr/java/uk/ltd/getahead/dwr/util/JavascriptUtil.java

I would like to submit it to development, though it may not be
Apache-quality code. It is well tested and stable, but is inefficient
with files (reads and writes the same file once or twice, passes the
file as a String through several regex-like loops, and bypasses most
of the elegance in the copied Replace task). Any suggestions?

Example:

<jscompress
            token="optionalold" value="optionalnew"
            file="${dir.target.distversion}/framework.js"
            stripslashslash="yes"
            stripslashstar="yes"
            trimlines="yes"
            stripblanklines="yes"
            shrinkvariables="no"
            stripnewlines="no"
            echo="no" />



--
Alex
--
Those who can make you believe absurdities can make you commit atrocities
-- Fran├žois Marie Arouet (Voltaire)
http://cph.blogsome.com
http://genaud.org/alex/key.asc
--
CCC7 D19D D107 F079 2F3D BF97 8443 DB5A 6DB8 9CE1

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message