Return-Path: X-Original-To: apmail-maven-issues-archive@minotaur.apache.org Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B83B29328 for ; Wed, 6 Mar 2013 20:41:18 +0000 (UTC) Received: (qmail 91087 invoked by uid 500); 6 Mar 2013 20:41:18 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 91054 invoked by uid 500); 6 Mar 2013 20:41:18 -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 91046 invoked by uid 99); 6 Mar 2013 20:41:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Mar 2013 20:41:18 +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 [63.246.24.159] (HELO codehaus01.managed.contegix.com) (63.246.24.159) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Mar 2013 20:41:13 +0000 Received: from codehaus01 (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id 1AA68B072E for ; Wed, 6 Mar 2013 14:40:53 -0600 (CST) Date: Wed, 6 Mar 2013 14:40:53 -0600 (CST) From: "Antonel Pazargic (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] (ARCHETYPE-274) Conditionally include or exclude a file from archetype during generation MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 22cf62d5d84cf5bea94eb3b65e0ebd09 X-Virus-Checked: Checked by ClamAV on apache.org [ https://jira.codehaus.org/browse/ARCHETYPE-274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=321549#comment-321549 ] Antonel Pazargic commented on ARCHETYPE-274: -------------------------------------------- Any updates on this? > Conditionally include or exclude a file from archetype during generation > ------------------------------------------------------------------------ > > Key: ARCHETYPE-274 > URL: https://jira.codehaus.org/browse/ARCHETYPE-274 > Project: Maven Archetype > Issue Type: Improvement > Components: Generator > Affects Versions: 2.0-alpha-4 > Reporter: Dan Allen > > I would like to be able to control which files are placed into the generated project based on the value of a property that is defined during archetype:generate. For instance, I forsee the following prompt: > Define value for groupId: : com.example > Define value for artifactId: : myproject > Define value for package: com.example: : > Define value for extraSupport: : y > Based on the value of extraSupport, I want to include (or not include) a file in the generated project. If the user does not want the extra support, I don't want to clutter up the generated project with unnecessary files. > It's all about customization of the project based on what the developer intends to use. While I could create a whole other archetype, sometimes the changes are so slight that it would be easier to include/exclude a file. > Is there a way to control this behavior using the archetype-metadata.xml descriptor? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira