Modifying a CSS file with Groovy in target before packaged into WAR

2013-02-12 Thread Cagecurrent
Hi,
I'm trying to figure out how to get my Groovy code to execute after my CSS
files has been copied from /src to /target, but *before* the content is
packaged from /target into the WAR file. Any hint on where to add this into
the pom.xml?!?

Thanks in advance!
/Per



--
View this message in context: 
http://maven.40175.n5.nabble.com/Modifying-a-CSS-file-with-Groovy-in-target-before-packaged-into-WAR-tp5746728.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: Modifying a CSS file with Groovy in target before packaged into WAR

2013-02-12 Thread Cagecurrent
I forgot to mention we are using Maven 2.2.1.



--
View this message in context: 
http://maven.40175.n5.nabble.com/Modifying-a-CSS-file-with-Groovy-in-target-before-packaged-into-WAR-tp5746728p5746729.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: Modifying a CSS file with Groovy in target before packaged into WAR

2013-02-12 Thread Cagecurrent
Anders: My files are in src/main/webapp/shared/eipa/css/elayout.css, and the
target is folder is 
target/ROOT/shared/eipa/css/elayout.css





--
View this message in context: 
http://maven.40175.n5.nabble.com/Modifying-a-CSS-file-with-Groovy-in-target-before-packaged-into-WAR-tp5746728p5746742.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: Modifying a CSS file with Groovy in target before packaged into WAR

2013-02-12 Thread Cagecurrent
Stephen, so you mean that I *can't* add anything in the middle of that? Or
can I override the normal process?

Sorry if I ask stupid questions, but I'm not that fluid in speaking Maven.
:)



--
View this message in context: 
http://maven.40175.n5.nabble.com/Modifying-a-CSS-file-with-Groovy-in-target-before-packaged-into-WAR-tp5746728p5746743.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: Modifying a CSS file with Groovy in target before packaged into WAR

2013-02-12 Thread Cagecurrent
Yes, I want to be able to use Groovy to modify the image references in the
CSS, but *not* in the /src directory as that is in subversion.

The change I'm doing is to be able to increase the caching times for the
images. So for example I would replace the image reference
url(/images/myimage.png) with url(/images/myimage~r2323.png). This way I can
have really long caching times for the images without having to manually
change the name of the image.

The ~r2323 will be removed in a rewrite in the proxy, so the image
myimage.png will still be served from the server.

But as I said, I don't want to modify the CSS in the /src folder as it will
make subversion so it as edited. So the plan is to modify the version of the
CSS file once it's been copied over the /target folder, but it needs to be
done before the WAR is created.

Thanks a lot for your help!
/Per



--
View this message in context: 
http://maven.40175.n5.nabble.com/Modifying-a-CSS-file-with-Groovy-in-target-before-packaged-into-WAR-tp5746728p5746755.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: Modifying a CSS file with Groovy in target before packaged into WAR

2013-02-12 Thread Cagecurrent
Thanks for your help! :)

I guess another solution would be to modify the CSS files in the WAR after
that it has been created, do you see any problems with that?



--
View this message in context: 
http://maven.40175.n5.nabble.com/Modifying-a-CSS-file-with-Groovy-in-target-before-packaged-into-WAR-tp5746728p5746761.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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