I know this question has been asked many times, but here are my specific needs. The obfuscator needs to come in a form of a java library, so I can make an Ant task in order to automate the build process. IE7, 8, Firefox and Chrome must be able to interpret the resulting js very fast (original js file is pretty big - 18k lines of code). If none exist which satisfy these requirements I'm willing to consider a commercial solution.
views:
80answers:
4
+2
A:
Some options:
- YUI compressor. See Julien Lecomte's blog for example use from Ant.
- LCA Soft provide a free Ant task interface to the Dojo Toolkit compressor.
- Jawr - Ant task.
(I've not used Jawr or Dojo, so can't comment on which is best.)
martin clayton
2010-10-29 08:39:55
Thanks for the quick reply. YUI does a fine job, but do you know of any obfuscators that do a Base64 mixing (all the requirements mentioned above must still apply)?
Marre
2010-10-29 09:55:33
... like the one on this page jsutility.pjoneil.net (problems: apart from not being a jar, it's slow on IE7)
Marre
2010-10-29 10:07:26
+1
A:
There is a free open source java solution which have both: runtime & build time (maven) implementations: http://code.google.com/p/wro4j/wiki/GettingStarted
Alex Objelean
2010-10-30 09:17:46