[
https://jira.codehaus.org/browse/ARCHETYPE-424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=351301#comment-351301
]
Martin Grigorov commented on ARCHETYPE-424:
-------------------------------------------
This is a duplicate of ARCHETYPE-274.
> 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 was sent by Atlassian JIRA
(v6.1.6#6162)