[
https://jira.codehaus.org/browse/ARCHETYPE-362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Herve Boutemy closed ARCHETYPE-362.
-----------------------------------
Resolution: Fixed
Fix Version/s: 2.1
Assignee: Herve Boutemy
patch applied with improvements in
[r1163371|http://svn.apache.org/viewvc?rev=1163371&view=rev]
thank you
> Replacing properties in default value of other properties doesn't work due to
> faulty ordering.
> ----------------------------------------------------------------------------------------------
>
> Key: ARCHETYPE-362
> URL: https://jira.codehaus.org/browse/ARCHETYPE-362
> Project: Maven Archetype
> Issue Type: Bug
> Components: Generator
> Affects Versions: 2.0
> Reporter: Maarten Winkels
> Assignee: Herve Boutemy
> Fix For: 2.1
>
> Attachments: RequiredPropertyComparatorTest.java,
> traverse-properties-without-default-value.patch
>
>
> I would like to do something like:
> {code:xml}<requiredProperty key="name"/>
> <requiredProperty key="archetypeId">
> <defaultValue>some-prefix-${name}</defaultValue>
> </requiredProperty>{code}
> This is now not working, because the name property does not declare a default
> value.
> Please see the attached test for an example.
> The other attachement is a patch that changes the comparator for sorting the
> required properties in such a way that it actually works.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira