Hi, We use the YUI compression/obfusation now, and it seems to work very nicely.
You should certainly separate out your js, css and JSP, which should be easy. If you cannot, then you could get the compression plugin and tweak it to do JSP somehow. Seperation is the way to go though IMO. Regards, John > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 01 March 2008 08:57 > To: [email protected] > Subject: compress & obfuscate js files > > Hi, > > I am still working on moving a big legacy project from Maven > 1 to Maven2. > Next step is compression of javascript files. > > What's the best plugin for this task? > http://mojo.codehaus.org/javascript-maven-tools/ > > ? > > I just found: > > http://alchim.sourceforge.net/hg/yuicompressor-maven-plugin/ > > - which is based on yuicompressor, that I was even > recommended to use by the javascript community. > > Not only does it compress javascript file, but also css file > and it also seems to abfuscate them. > The only problem I see with my legacy project - css and > javascript are not 100% separated into their own files - > often javascript and or css is directly used in jsp pages. > So in order to properly obfuscate, a plugin would have to > parse not only the css and javascript files, but also all jsp > pages, that do direct javascript function calls and so on. > > Any idea if there is a compressor / obfuscator plugin that > does all that? > > I would be pleased if you could recommend me something, that > would be great - I underestimated the work to be done > migrating to maven 2 and am kinda lost! :-( > > Thanks in advance, > > Stefanie > > -- > GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! > Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > Eurobase International Limited and its subsidiaries (Eurobase) are unable to exercise control over the content of information in E-Mails. Any views and opinions expressed may be personal to the sender and are not necessarily those of Eurobase. Eurobase will not enter into any contractual obligations in respect of any part of its business in any E-mail. Privileged / confidential information may be contained in this message and /or any attachments. This E-mail is intended for the use of the addressee(s) only and may contain confidential information. If you are not the / an intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited. If you receive this transmission in error, please notify us immediately, and then delete this E-mail. Neither the sender nor Eurobase accepts any liability whatsoever for any defects of any kind either in or arising from this E-mail transmission. E-Mail transmission cannot be guaranteed to be secure or error-free, as messages can be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or incomplete. Eurobase does not accept any responsibility for viruses and it is your responsibility to scan any attachments. Eurobase Systems Limited is the main trading company in the Eurobase International Group; registered in England and Wales as company number 02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex CM2 0RE, UK. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
