You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Adrian (JIRA)" <ji...@codehaus.org> on 2013/01/16 19:01:13 UTC

[jira] (ARCHETYPE-424) Conditionally include or exclude a fileSet from an archetype when project is generated

Adrian created ARCHETYPE-424:
--------------------------------

             Summary: Conditionally include or exclude a fileSet from an archetype when project is generated
                 Key: ARCHETYPE-424
                 URL: https://jira.codehaus.org/browse/ARCHETYPE-424
             Project: Maven Archetype
          Issue Type: New Feature
            Reporter: Adrian


I'm creating a project generating code samples for accessing Oracle and Mainframe.

I want to conditionnaly generate the samples based on user input
Define value for groupId: : com.example
Define value for artifactId: : myproject
Define value for package:  com.example: :
Define value for SGBD Sample : : Y
Define value for Mainframe Sample : : N

Could it be possible to add this functionnality ?

i.e. This could be done by adding an attribute into fileSet element which would indicate if the fileSet directive needs to be taken into account :

{code:xml}
<fileSet filtered="true" encoding="UTF-8" enable="${mainframeSample}">
	<directory>src/main/java</directory>
	<includes>
		<include>mainframe/*.java</include>
	</includes>
</fileSet>
{code}

Some links : 
 * [http://stackoverflow.com/questions/1919704/how-do-i-conditionally-include-or-exclude-a-file-from-an-archetype-when-project]
 * [ARCHETYPE-58|http://jira.codehaus.org/browse/ARCHETYPE-58] (this one didn't adressed this issue)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira