[
https://issues.apache.org/jira/browse/ARCHETYPE-398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Osipov closed ARCHETYPE-398.
------------------------------------
Resolution: Auto Closed
This issue has been auto closed because it has been inactive for a long period
of time. If you think this issue still applies, retest your problem with the
most recent version of Maven and the affected component, reopen and post your
results.
> Use velocity expressions in path names
> --------------------------------------
>
> Key: ARCHETYPE-398
> URL: https://issues.apache.org/jira/browse/ARCHETYPE-398
> Project: Maven Archetype
> Issue Type: New Feature
> Components: Plugin
> Affects Versions: 2.2
> Reporter: Nicolas Dupont
> Priority: Major
>
> In required properties in an archetype descriptor, you can use expressions
> such as :
> {code:xml}<requiredProperty key="className">
> <defaultValue>${rootArtifactId.substring(0,1).toUpperCase()}${rootArtifactId.substring(1)}</defaultValue>
> </requiredProperty>{code}
> But you can't in a path name (e.g. you can't name a folder as
> {{\_\_rootArtifactId.substring(1)\_\_}}).
> For such a case, another solution would be the ability to store a hidden
> value (not visible by the user who generates a project) in the Velocity
> context and to able to use it in a path name (e.g. define somewhere
> MyFolderName as rootArtifactId.substring(1) and then use
> {{\_\_MyFolderName\_\_}} as a folder name).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)