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

Bue Pierre-Christophe commented on ARCHETYPE-406:
-------------------------------------------------

Not exactly.

ACRHETYPE-397 deals with a problem in the display on the use of standard 
properties, such as artifactId.substring, and so on, but they are correctly 
evaluate by Velocity in the generation step of the archetype.

This bug wants to manage correctly the use of user-defined properties in the 
same way standard properties are, such as the description of this bug 
spotlights.
                
> Support of velocity expressions for user-defined properties
> -----------------------------------------------------------
>
>                 Key: ARCHETYPE-406
>                 URL: https://jira.codehaus.org/browse/ARCHETYPE-406
>             Project: Maven Archetype
>          Issue Type: Bug
>          Components: Plugin
>    Affects Versions: 2.x
>            Reporter: Bue Pierre-Christophe
>
> Standard properties (artifactId, groupId, ...) are supported in Velocity 
> expressiosn, but still does not work with user defined properties. For 
> example:
> <requiredProperty key="a">
> <defaultValue>${artifactId}.substring(0,1).toUpperCase()</defaultValue>
> </requiredProperty>
> with artifactId=toto will give a=T, but
> <requiredProperty key="b"/>
> <requiredProperty key="a">
> <defaultValue>${b}.substring(0,1).toUpperCase()</defaultValue>
> </requiredProperty>
> with b=toto will give a=${b}.substring(0,1).toUpperCase()

--
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

        

Reply via email to