From issues-return-11978-apmail-maven-issues-archive=maven.apache.org@maven.apache.org Mon Oct 02 21:48:41 2006 Return-Path: Delivered-To: apmail-maven-issues-archive@locus.apache.org Received: (qmail 89316 invoked from network); 2 Oct 2006 21:48:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Oct 2006 21:48:41 -0000 Received: (qmail 5065 invoked by uid 500); 2 Oct 2006 21:48:40 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 5012 invoked by uid 500); 2 Oct 2006 21:48:39 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 5001 invoked by uid 99); 2 Oct 2006 21:48:39 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Oct 2006 14:48:39 -0700 X-ASF-Spam-Status: No, hits=0.5 required=5.0 tests=DNS_FROM_RFC_ABUSE Received: from [63.246.20.114] ([63.246.20.114:42527] helo=63-246-20-114.contegix.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id AF/09-24395-23981254 for ; Mon, 02 Oct 2006 14:48:37 -0700 Received: (qmail 3176 invoked by uid 89); 2 Oct 2006 21:48:27 -0000 Received: from unknown (HELO codehaus01.managed.contegix.com) (127.0.0.1) by smtp.domain.com with SMTP; 2 Oct 2006 21:48:27 -0000 Message-ID: <76696000.1159825707172.JavaMail.haus-jira@codehaus01.managed.contegix.com> Date: Mon, 2 Oct 2006 16:48:27 -0500 (CDT) From: "Philip Dodds (JIRA)" To: issues@maven.apache.org Subject: [jira] Created: (ARCHETYPE-58) Allows for additional properties in velocity context and also conditional processing of source, resources etc MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Allows for additional properties in velocity context and also conditional processing of source, resources etc ------------------------------------------------------------------------------------------------------------- Key: ARCHETYPE-58 URL: http://jira.codehaus.org/browse/ARCHETYPE-58 Project: Maven Archetype Issue Type: New Feature Components: Generator Affects Versions: 1.0-alpha-4 Reporter: Philip Dodds Attachments: properties_and_conditions.patch Need the ability to add new properties to the velocity context during the processing of an archetype through archetype-core. Also need the ability to determine whether to optionally include a resource, source etc based on a conditional test on a property. Consider for example adding properties and optional tests as follows: servicemix-se src/main/java/MyBootstrap.java src/main/java/MyComponent.java src/main/java/MyEndpoint.java src/test/java/MySpringComponentTest.java src/test/resources/spring.xml src/test/resources/log4j.properties The example above shows that we want to be able to gather additional properties and then in the sources conditionally determine whether we want to include it. I will attach a patch that already implements the contextProperties as shown above and has 80% of the code in place for the conditional inclusion of files. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira