views:

80

answers:

4

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.

+2  A: 

Some options:

(I've not used Jawr or Dojo, so can't comment on which is best.)

martin clayton
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
... like the one on this page jsutility.pjoneil.net (problems: apart from not being a jar, it's slow on IE7)
Marre
A: 

Google's closure-compiler is another alternative.

Dominic Mitchell
+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