You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Garrison, Jim (ETW)" <Ji...@nike.com> on 2012/07/04 00:20:04 UTC

Resource filtering with substitution targets defined by regex?

I'm building a webapp that will use a number of 3rd party Javascript/CSS libraries.  A typical "sloppy" approach would be to open the distribution zips, copy the required files into webapp/css and webapp/js, and forget about it until you have to upgrade a UI library. At this point you have no idea which files came from where.

What I want to do is impose some structure on this by storing the UI library distribution zip within a "vendor" directory at top level and then use the Maven Resource plugin to copy the files during the Process Resources phase.  

The problem is that I need to apply arbitrary transformations (change paths, for example) to files over which I have no control, and cannot edit to include substitution tokens.  I want to match on a regex instead.  AFAICT, the Resource plugin does not support arbitrary regex matching for its filtering operation.

[Yes, I know that when the next version of Library X comes out some of my regexes may be invalid.  It will still be a much better starting point]

Is there a plugin that will do this?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org