You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Emmanuel Hugonnet (JIRA)" <ji...@codehaus.org> on 2011/09/07 18:22:32 UTC

[jira] Commented: (ARCHETYPE-383) Use velocity expressions in descriptor properties

    [ https://jira.codehaus.org/browse/ARCHETYPE-383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=277979#comment-277979 ] 

Emmanuel Hugonnet commented on ARCHETYPE-383:
---------------------------------------------

This fixes the feature although I don't see the rootArtifactId in the context so I had to use the following expression : ${artifactId.substring(0,1).toUpperCase()}${artifactId.substring(1)}

> Use velocity expressions in descriptor properties
> -------------------------------------------------
>
>                 Key: ARCHETYPE-383
>                 URL: https://jira.codehaus.org/browse/ARCHETYPE-383
>             Project: Maven Archetype
>          Issue Type: New Feature
>          Components: Plugin
>    Affects Versions: 2.1
>            Reporter: Emmanuel Hugonnet
>             Fix For: 2.2
>
>         Attachments: patch_jira_383.patch
>
>
> The descriptor can use velocity expressions for value and defaultValue, thus enabling the creation of velocity global properties for an archetype.
> For example :
> <requiredProperty key="className">
>   <defaultValue>${rootArtifactId.substring(0,1).toUpperCase()}${rootArtifactId.substring(1)}</defaultValue>
> </requiredProperty>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira