You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Herve Boutemy (JIRA)" <ji...@codehaus.org> on 2011/01/25 00:23:57 UTC
[jira] Updated: (ARCHETYPE-362) Replacing properties in default
value of other properties doesn't work due to faulty ordering.
[ 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