[
http://jira.codehaus.org/browse/ARCHETYPE-362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Herve Boutemy updated ARCHETYPE-362:
------------------------------------
Description:
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.
was:
I would like to do something like:
<requiredProperty key="name"/>
<requiredProperty key="archetypeId">
<defaultValue>some-prefix-${name}</defaultValue>
</requiredProperty>
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.
> Replacing properties in default value of other properties doesn't work due to
> faulty ordering.
> ----------------------------------------------------------------------------------------------
>
> Key: ARCHETYPE-362
> URL: http://jira.codehaus.org/browse/ARCHETYPE-362
> Project: Maven Archetype
> Issue Type: Bug
> Components: Generator
> Affects Versions: 2.0
> Reporter: Maarten Winkels
> 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.
-
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