Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2A17CDF79 for ; Tue, 12 Feb 2013 09:43:48 +0000 (UTC) Received: (qmail 65955 invoked by uid 500); 12 Feb 2013 09:43:46 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 65613 invoked by uid 500); 12 Feb 2013 09:43:45 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 65464 invoked by uid 99); 12 Feb 2013 09:43:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2013 09:43:44 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2013 09:43:39 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1U5COU-00046n-VC for users@maven.apache.org; Tue, 12 Feb 2013 01:43:18 -0800 Date: Tue, 12 Feb 2013 01:43:18 -0800 (PST) From: Cagecurrent To: users@maven.apache.org Message-ID: <1360662198961-5746755.post@n5.nabble.com> In-Reply-To: References: <1360657804338-5746728.post@n5.nabble.com> <1360660810152-5746743.post@n5.nabble.com> Subject: Re: Modifying a CSS file with Groovy in target before packaged into WAR MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org