wood burning stoves 2.0*
The moose likes Ant, Maven and Other Build Tools and the fly likes JSP Updates when using YUI Compressor with Maven Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "JSP Updates when using YUI Compressor with Maven" Watch "JSP Updates when using YUI Compressor with Maven" New topic
Author

JSP Updates when using YUI Compressor with Maven

Anant K Agarwal
Greenhorn

Joined: Mar 01, 2012
Posts: 9
Hello Ranchers,

I am using YUI Compressor to compress Javascript & CSS files. The files that get generated have a suffix "-min" added to it.
We have an option to disable them. The YUI Compressor is used as part of the Maven build process.

All of my JSP's have a link to "un-minified" versions of JS & CSS files. Now when the minified files are generated, how do I update
all my JSP's to link to the new files. I don't want to remove the "-min" option.

Thanks in advance,
Anant
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

You can edit every single JSP to reference the minified files.

Why don't you want to use the option to not add the -min suffix? The YUI Compressor plugin should be copying the JS and CSS files from the src to the target directory, so there will be no problem between telling apart the original files and the minified files.


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP Updates when using YUI Compressor with Maven