Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 35326 invoked from network); 1 Mar 2007 10:46:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Mar 2007 10:46:52 -0000 Received: (qmail 41668 invoked by uid 500); 1 Mar 2007 10:46:53 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 41624 invoked by uid 500); 1 Mar 2007 10:46:53 -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 41613 invoked by uid 99); 1 Mar 2007 10:46:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2007 02:46:53 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [83.97.42.2] (HELO lilly.ping.de) (83.97.42.2) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 01 Mar 2007 02:46:42 -0800 Received: (qmail 14232 invoked by uid 10); 1 Mar 2007 10:46:20 -0000 Received: from xanthippe.ping.de by lilly.ping.de with UUCP (rmail-0.2-fdc); 1 Mar 2007 10:46:20 -0000 Received: from xanthippe.dyndns.org (localhost [127.0.0.1]) by xanthippe.ping.de (Postfix) with ESMTP id 50E5B2141DB for ; Thu, 1 Mar 2007 11:41:45 +0100 (CET) Received: from 80.145.15.42 (SquirrelMail authenticated user dirk) by xanthippe.dyndns.org with HTTP; Thu, 1 Mar 2007 11:41:45 +0100 (CET) Message-ID: <59195.80.145.15.42.1172745705.squirrel@xanthippe.dyndns.org> In-Reply-To: References: <45E581DC.1030503@gridsystems.com> Date: Thu, 1 Mar 2007 11:41:45 +0100 (CET) Subject: Re: How to generate sources from templates From: "Dirk Olmes" To: "Maven Users List" User-Agent: SquirrelMail/1.4.9a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Checked: Checked by ClamAV on apache.org > On 28 Feb 07, at 8:21 AM 28 Feb 07, Rodrigo Ruiz wrote: > >> Hi everybody, >> >> I need to generate text files from filtered resources, but I do not >> want >> them to be copied to the target/classes folder. The files are C header >> templates that I want to filter using some properties defined through >> maven profiles. >> >> Is there a way to do this apart from using the ant plugin? > You probably want to use something like Velocity which is real > templating solution. The archetype mechanism uses it and so does the > remote resources plugin. You could lift one of those to create your > own velocity plugin which would be idea in my mind. This reminds me ... would it be a good idea to have a generic velocity plugin that allows to filter template files? E.g. imagine a custom (shell) script to execute the final artifact that needs the current version merged in. (I know, there's other ways to do it but said script would be more than what maven-appassembler-plugin would be able to generate). -dirk -- Anyway kids, have fun, play nicely, be good. And remember - if it ain't broke, hit it again. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org