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 E2BB79122 for ; Mon, 25 Feb 2013 20:32:01 +0000 (UTC) Received: (qmail 96560 invoked by uid 500); 25 Feb 2013 20:31:59 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 96476 invoked by uid 500); 25 Feb 2013 20:31:59 -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 96468 invoked by uid 99); 25 Feb 2013 20:31:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Feb 2013 20:31:59 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [24.37.79.202] (HELO smtp.artifact-software.com) (24.37.79.202) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Feb 2013 20:31:54 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.artifact-software.com (Postfix) with ESMTP id 8606CFEC049 for ; Mon, 25 Feb 2013 15:31:31 -0500 (EST) X-Virus-Scanned: amavisd-new at artifact-software.com Received: from smtp.artifact-software.com ([127.0.0.1]) by localhost (smtp.artifact-software.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PxipPNxkyJ-S for ; Mon, 25 Feb 2013 15:31:24 -0500 (EST) Received: from [192.168.3.170] (unknown [192.168.3.170]) by smtp.artifact-software.com (Postfix) with ESMTP id A815C6A7A67 for ; Mon, 25 Feb 2013 15:31:24 -0500 (EST) Message-ID: <512BCA1A.8040107@artifact-software.com> Date: Mon, 25 Feb 2013 15:31:22 -0500 From: Ron Wheeler Reply-To: rwheeler@artifact-software.com Organization: Artifact Software User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: users@maven.apache.org Subject: Re: dynamically select resources and apply filtering References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Why not move the production of the software to Maven and leave the assembly in Ant. That would give you the best of both worlds. On 25/02/2013 2:41 PM, Jean-No�l Colin wrote: > Hi > > I'm trying to migrate my project from ant to maven, but I'm facing a few difficulties; I need to build my project for different environments (customers, so possibly a long list). In my ant project, I had several .properties file, one per customer; in this file, I had properties used to customize some config file; I managed to use resource filtering to achieve this. > > However, some properties defined a filename that needed to be copied to the war archive, but under a common name. For instance, I had several logos: logo_customer1.jpg, logo_customer2.jpg, logo_customer3.jpg; the source file name was specified in the properties file (customer1.properties, customer2.properties, customer3.properties), but the destination was always logo.jpg. How can I do that? > > Second, the properties file defines the name of the file (resources) to be filtered. For instance, I have a template for working with Spring Security in LDAP environment and another template when working when Active Directory; the customer properties file defined the name of the template to use, but in both cases, the result file needs to be applicationContext-security.xml. How can i achieve this? Or is there a way to define conditional profiles so that in the customer .properties file, I would say LDAP or AD, and based on that value, different profile would be used? > > Many thanks for your help > > Jean-No�l > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org > > -- Ron Wheeler President Artifact Software Inc email: rwheeler@artifact-software.com skype: ronaldmwheeler phone: 866-970-2435, ext 102 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org