• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSP Updates when using YUI Compressor with Maven

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic