Nicolas Dupont created ARCHETYPE-398:
----------------------------------------

             Summary: Use velocity expressions in path names
                 Key: ARCHETYPE-398
                 URL: https://jira.codehaus.org/browse/ARCHETYPE-398
             Project: Maven Archetype
          Issue Type: New Feature
          Components: Plugin
    Affects Versions: 2.2
            Reporter: Nicolas Dupont


In required properties in an archetype descriptor, you can use expressions such 
as :
<requiredProperty key="className">
<defaultValue>${rootArtifactId.substring(0,1).toUpperCase()}${rootArtifactId.substring(1)}</defaultValue>
</requiredProperty>

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