[ https://jira.codehaus.org/browse/ARCHETYPE-406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Scholte updated ARCHETYPE-406: ------------------------------------- Description: Standard properties (artifactId, groupId, ...) are supported in Velocity expressions, but still does not work with user defined properties. For example: {code:xml} <requiredProperty key="a"> <defaultValue>${artifactId}.substring(0,1).toUpperCase()</defaultValue> </requiredProperty> {code} with artifactId=toto will give a=T, but {code:xml} <requiredProperty key="b"/> <requiredProperty key="a"> <defaultValue>${b}.substring(0,1).toUpperCase()</defaultValue> </requiredProperty> {code} with b=toto will give a=$\{b}.substring(0,1).toUpperCase() was: 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() > 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 > Attachments: ARCHETYPE-406.patch, sample-archetype406.tar.gz > > > Standard properties (artifactId, groupId, ...) are supported in Velocity > expressions, but still does not work with user defined properties. For > example: > {code:xml} > <requiredProperty key="a"> > <defaultValue>${artifactId}.substring(0,1).toUpperCase()</defaultValue> > </requiredProperty> > {code} > with artifactId=toto will give a=T, but > {code:xml} > <requiredProperty key="b"/> > <requiredProperty key="a"> > <defaultValue>${b}.substring(0,1).toUpperCase()</defaultValue> > </requiredProperty> > {code} > with b=toto will give a=$\{b}.substring(0,1).toUpperCase() -- This message was sent by Atlassian JIRA (v6.1.6#6162)