Provide more properties (like current date) that are provided automatically
---------------------------------------------------------------------------

                 Key: ARCHETYPE-63
                 URL: http://jira.codehaus.org/browse/ARCHETYPE-63
             Project: Maven Archetype
          Issue Type: New Feature
    Affects Versions: 1.0-alpha-3
            Reporter: Martin Ahrer


I'm trying to create archetypes that create project templates that need to 
refer to properties other than 
groupId
artifactId
version
packageName
archetypeGroupId
...

to allow more flexible customization of the templates using velocity. for 
example I'm providing a changes.xml with a pre-set release element. this here 
refers to a variable $currentDate (like the site plugin provides one) through a 
VTL expression.

                <release version="1.0" date="$currentDate" description="First 
release">
                        <action dev="xxx" type="add">$currentDate: initial 
project setup</action>
                </release>

But there might be more auto-properties that one could think of!
* date
* time
* current user
* ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to