You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Emmanuel Hugonnet (JIRA)" <ji...@codehaus.org> on 2011/09/07 16:58:32 UTC
[jira] Created: (ARCHETYPE-383) Use velocity expressions in
descriptor properties
Use velocity expressions in descriptor properties
-------------------------------------------------
Key: ARCHETYPE-383
URL: https://jira.codehaus.org/browse/ARCHETYPE-383
Project: Maven Archetype
Issue Type: Improvement
Components: Plugin
Affects Versions: 2.1
Reporter: Emmanuel Hugonnet
The descriptor can use velocity expressions for value and defaultValue, thus enabling the creation of velocity global properties for an archetype.
For example :
<requiredProperty key="className">
<defaultValue>${rootArtifactId.substring(0,1).toUpperCase()}${rootArtifactId.substring(1)}</defaultValue>
</requiredProperty>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (ARCHETYPE-383) Use velocity expressions in descriptor
properties
Posted by "Bue Pierre-Christophe (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/ARCHETYPE-383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=296689#comment-296689 ]
Bue Pierre-Christophe commented on ARCHETYPE-383:
-------------------------------------------------
done with [ARCHETYPE-406|https://jira.codehaus.org/browse/ARCHETYPE-406]
> Use velocity expressions in descriptor properties
> -------------------------------------------------
>
> Key: ARCHETYPE-383
> URL: https://jira.codehaus.org/browse/ARCHETYPE-383
> Project: Maven Archetype
> Issue Type: New Feature
> Components: Plugin
> Affects Versions: 2.1
> Reporter: Emmanuel Hugonnet
> Assignee: Olivier Lamy
> Fix For: 2.2
>
> Attachments: patch_jira_383.patch
>
>
> The descriptor can use velocity expressions for value and defaultValue, thus enabling the creation of velocity global properties for an archetype.
> For example :
> <requiredProperty key="className">
> <defaultValue>${rootArtifactId.substring(0,1).toUpperCase()}${rootArtifactId.substring(1)}</defaultValue>
> </requiredProperty>
--
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
[jira] (ARCHETYPE-383) Use velocity expressions in descriptor
properties
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/ARCHETYPE-383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=296672#comment-296672 ]
Olivier Lamy commented on ARCHETYPE-383:
----------------------------------------
please reopen an other issue.
> Use velocity expressions in descriptor properties
> -------------------------------------------------
>
> Key: ARCHETYPE-383
> URL: https://jira.codehaus.org/browse/ARCHETYPE-383
> Project: Maven Archetype
> Issue Type: New Feature
> Components: Plugin
> Affects Versions: 2.1
> Reporter: Emmanuel Hugonnet
> Assignee: Olivier Lamy
> Fix For: 2.2
>
> Attachments: patch_jira_383.patch
>
>
> The descriptor can use velocity expressions for value and defaultValue, thus enabling the creation of velocity global properties for an archetype.
> For example :
> <requiredProperty key="className">
> <defaultValue>${rootArtifactId.substring(0,1).toUpperCase()}${rootArtifactId.substring(1)}</defaultValue>
> </requiredProperty>
--
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
[jira] (ARCHETYPE-383) Use velocity expressions in descriptor
properties
Posted by "Bue Pierre-Christophe (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/ARCHETYPE-383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=296310#comment-296310 ]
Bue Pierre-Christophe commented on ARCHETYPE-383:
-------------------------------------------------
the bug fiw worked fine for standard properties (artifactId, groupId, ...), but still does not work with user defined properties. For example:
<requiredProperty key="a">
<defaultValue>${artifactId}.substring(0,1).toUpperCase()</defaultValue>
</requiredProperty>
with artifactId=toto will give a=T, but
<requiredProperty key="b"/>
<requiredProperty key="a">
<defaultValue>${b}.substring(0,1).toUpperCase()</defaultValue>
</requiredProperty>
with b=toto will give a=${b}.substring(0,1).toUpperCase()
> Use velocity expressions in descriptor properties
> -------------------------------------------------
>
> Key: ARCHETYPE-383
> URL: https://jira.codehaus.org/browse/ARCHETYPE-383
> Project: Maven Archetype
> Issue Type: New Feature
> Components: Plugin
> Affects Versions: 2.1
> Reporter: Emmanuel Hugonnet
> Assignee: Olivier Lamy
> Fix For: 2.2
>
> Attachments: patch_jira_383.patch
>
>
> The descriptor can use velocity expressions for value and defaultValue, thus enabling the creation of velocity global properties for an archetype.
> For example :
> <requiredProperty key="className">
> <defaultValue>${rootArtifactId.substring(0,1).toUpperCase()}${rootArtifactId.substring(1)}</defaultValue>
> </requiredProperty>
--
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
[jira] Updated: (ARCHETYPE-383) Use velocity expressions in
descriptor properties
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/ARCHETYPE-383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Lamy updated ARCHETYPE-383:
-----------------------------------
Assignee: Olivier Lamy
> Use velocity expressions in descriptor properties
> -------------------------------------------------
>
> Key: ARCHETYPE-383
> URL: https://jira.codehaus.org/browse/ARCHETYPE-383
> Project: Maven Archetype
> Issue Type: New Feature
> Components: Plugin
> Affects Versions: 2.1
> Reporter: Emmanuel Hugonnet
> Assignee: Olivier Lamy
> Fix For: 2.2
>
> Attachments: patch_jira_383.patch
>
>
> The descriptor can use velocity expressions for value and defaultValue, thus enabling the creation of velocity global properties for an archetype.
> For example :
> <requiredProperty key="className">
> <defaultValue>${rootArtifactId.substring(0,1).toUpperCase()}${rootArtifactId.substring(1)}</defaultValue>
> </requiredProperty>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (ARCHETYPE-383) Use velocity expressions in descriptor
properties
Posted by "Björn Pollex (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/ARCHETYPE-383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=296407#comment-296407 ]
Björn Pollex commented on ARCHETYPE-383:
----------------------------------------
This definitely deserves a reopen to make it work for user-defined properties.
> Use velocity expressions in descriptor properties
> -------------------------------------------------
>
> Key: ARCHETYPE-383
> URL: https://jira.codehaus.org/browse/ARCHETYPE-383
> Project: Maven Archetype
> Issue Type: New Feature
> Components: Plugin
> Affects Versions: 2.1
> Reporter: Emmanuel Hugonnet
> Assignee: Olivier Lamy
> Fix For: 2.2
>
> Attachments: patch_jira_383.patch
>
>
> The descriptor can use velocity expressions for value and defaultValue, thus enabling the creation of velocity global properties for an archetype.
> For example :
> <requiredProperty key="className">
> <defaultValue>${rootArtifactId.substring(0,1).toUpperCase()}${rootArtifactId.substring(1)}</defaultValue>
> </requiredProperty>
--
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
[jira] Updated: (ARCHETYPE-383) Use velocity expressions in
descriptor properties
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/ARCHETYPE-383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Lamy updated ARCHETYPE-383:
-----------------------------------
Fix Version/s: 2.2
Issue Type: New Feature (was: Improvement)
> Use velocity expressions in descriptor properties
> -------------------------------------------------
>
> Key: ARCHETYPE-383
> URL: https://jira.codehaus.org/browse/ARCHETYPE-383
> Project: Maven Archetype
> Issue Type: New Feature
> Components: Plugin
> Affects Versions: 2.1
> Reporter: Emmanuel Hugonnet
> Fix For: 2.2
>
>
> The descriptor can use velocity expressions for value and defaultValue, thus enabling the creation of velocity global properties for an archetype.
> For example :
> <requiredProperty key="className">
> <defaultValue>${rootArtifactId.substring(0,1).toUpperCase()}${rootArtifactId.substring(1)}</defaultValue>
> </requiredProperty>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (ARCHETYPE-383) Use velocity expressions in
descriptor properties
Posted by "Emmanuel Hugonnet (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/ARCHETYPE-383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Hugonnet updated ARCHETYPE-383:
----------------------------------------
Attachment: patch_jira_383.patch
Patch to evaluate properties before the generation of the project
> Use velocity expressions in descriptor properties
> -------------------------------------------------
>
> Key: ARCHETYPE-383
> URL: https://jira.codehaus.org/browse/ARCHETYPE-383
> Project: Maven Archetype
> Issue Type: New Feature
> Components: Plugin
> Affects Versions: 2.1
> Reporter: Emmanuel Hugonnet
> Fix For: 2.2
>
> Attachments: patch_jira_383.patch
>
>
> The descriptor can use velocity expressions for value and defaultValue, thus enabling the creation of velocity global properties for an archetype.
> For example :
> <requiredProperty key="className">
> <defaultValue>${rootArtifactId.substring(0,1).toUpperCase()}${rootArtifactId.substring(1)}</defaultValue>
> </requiredProperty>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (ARCHETYPE-383) Use velocity expressions in
descriptor properties
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/ARCHETYPE-383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Lamy closed ARCHETYPE-383.
----------------------------------
Resolution: Fixed
fixed r1194889
Thanks!
> Use velocity expressions in descriptor properties
> -------------------------------------------------
>
> Key: ARCHETYPE-383
> URL: https://jira.codehaus.org/browse/ARCHETYPE-383
> Project: Maven Archetype
> Issue Type: New Feature
> Components: Plugin
> Affects Versions: 2.1
> Reporter: Emmanuel Hugonnet
> Assignee: Olivier Lamy
> Fix For: 2.2
>
> Attachments: patch_jira_383.patch
>
>
> The descriptor can use velocity expressions for value and defaultValue, thus enabling the creation of velocity global properties for an archetype.
> For example :
> <requiredProperty key="className">
> <defaultValue>${rootArtifactId.substring(0,1).toUpperCase()}${rootArtifactId.substring(1)}</defaultValue>
> </requiredProperty>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (ARCHETYPE-383) Use velocity expressions in
descriptor properties
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/ARCHETYPE-383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=282373#comment-282373 ]
Olivier Lamy commented on ARCHETYPE-383:
----------------------------------------
maybeVelocityExpression test only contains $, I will add contains on ${
> Use velocity expressions in descriptor properties
> -------------------------------------------------
>
> Key: ARCHETYPE-383
> URL: https://jira.codehaus.org/browse/ARCHETYPE-383
> Project: Maven Archetype
> Issue Type: New Feature
> Components: Plugin
> Affects Versions: 2.1
> Reporter: Emmanuel Hugonnet
> Assignee: Olivier Lamy
> Fix For: 2.2
>
> Attachments: patch_jira_383.patch
>
>
> The descriptor can use velocity expressions for value and defaultValue, thus enabling the creation of velocity global properties for an archetype.
> For example :
> <requiredProperty key="className">
> <defaultValue>${rootArtifactId.substring(0,1).toUpperCase()}${rootArtifactId.substring(1)}</defaultValue>
> </requiredProperty>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (ARCHETYPE-383) Use velocity expressions in
descriptor properties
Posted by "Emmanuel Hugonnet (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/ARCHETYPE-383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=277979#comment-277979 ]
Emmanuel Hugonnet commented on ARCHETYPE-383:
---------------------------------------------
This fixes the feature although I don't see the rootArtifactId in the context so I had to use the following expression : ${artifactId.substring(0,1).toUpperCase()}${artifactId.substring(1)}
> Use velocity expressions in descriptor properties
> -------------------------------------------------
>
> Key: ARCHETYPE-383
> URL: https://jira.codehaus.org/browse/ARCHETYPE-383
> Project: Maven Archetype
> Issue Type: New Feature
> Components: Plugin
> Affects Versions: 2.1
> Reporter: Emmanuel Hugonnet
> Fix For: 2.2
>
> Attachments: patch_jira_383.patch
>
>
> The descriptor can use velocity expressions for value and defaultValue, thus enabling the creation of velocity global properties for an archetype.
> For example :
> <requiredProperty key="className">
> <defaultValue>${rootArtifactId.substring(0,1).toUpperCase()}${rootArtifactId.substring(1)}</defaultValue>
> </requiredProperty>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira