You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Will Gomes (JIRA)" <ji...@codehaus.org> on 2008/07/15 20:37:27 UTC
[jira] Created: (ARCHETYPE-192) Property replacement for required
properties
Property replacement for required properties
--------------------------------------------
Key: ARCHETYPE-192
URL: http://jira.codehaus.org/browse/ARCHETYPE-192
Project: Maven Archetype
Issue Type: Improvement
Affects Versions: 2.0-alpha-3
Reporter: Will Gomes
It would be nice if one could define default values for required properties using other required properties.
For example:
<requiredProperties>
<requiredProperty key="myModule" />
<requiredProperty key="myApp" />
<requiredProperty key="package">
<defaultValue>org.foo.bar.${myModule}.${myApp}</defaultValue>
</requiredProperty>
</requiredProperties>
having resources
src/main/java
dao/MyDao.java
Main.java
would produce
org.foo.bar.mymodule.myapp.dao.MyDao.java
org.foo.bar.mymodule.myapp.Main.java
--
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
[jira] Commented: (ARCHETYPE-192) Property replacement for required
properties
Posted by "Torben Knerr (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/ARCHETYPE-192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=206953#action_206953 ]
Torben Knerr commented on ARCHETYPE-192:
----------------------------------------
When will 2.0-alpha-5 be deployed to repo1.maven.org? I have seen it is already tagged in svn, so I guess it is already released, right?
> Property replacement for required properties
> --------------------------------------------
>
> Key: ARCHETYPE-192
> URL: http://jira.codehaus.org/browse/ARCHETYPE-192
> Project: Maven Archetype
> Issue Type: Improvement
> Affects Versions: 2.0-alpha-3
> Reporter: Will Gomes
> Fix For: 2.0-alpha-5
>
>
> It would be nice if one could define default values for required properties using other required properties.
> For example:
> <requiredProperties>
> <requiredProperty key="myModule" />
> <requiredProperty key="myApp" />
> <requiredProperty key="package">
> <defaultValue>org.foo.bar.${myModule}.${myApp}</defaultValue>
> </requiredProperty>
> </requiredProperties>
> having resources
> src/main/java
> dao/MyDao.java
> Main.java
> would produce
> org.foo.bar.mymodule.myapp.dao.MyDao.java
> org.foo.bar.mymodule.myapp.Main.java
--
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
[jira] Closed: (ARCHETYPE-192) Property replacement for required
properties
Posted by "Raphaël Piéroni (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/ARCHETYPE-192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Raphaël Piéroni closed ARCHETYPE-192.
-------------------------------------
Resolution: Fixed
Fixed with revision 713809 and 714078.
This is only available for hand created archetypes.
Benjamin, please create another issue for your specific problem.
> Property replacement for required properties
> --------------------------------------------
>
> Key: ARCHETYPE-192
> URL: http://jira.codehaus.org/browse/ARCHETYPE-192
> Project: Maven Archetype
> Issue Type: Improvement
> Affects Versions: 2.0-alpha-3
> Reporter: Will Gomes
> Fix For: 2.0-alpha-5
>
>
> It would be nice if one could define default values for required properties using other required properties.
> For example:
> <requiredProperties>
> <requiredProperty key="myModule" />
> <requiredProperty key="myApp" />
> <requiredProperty key="package">
> <defaultValue>org.foo.bar.${myModule}.${myApp}</defaultValue>
> </requiredProperty>
> </requiredProperties>
> having resources
> src/main/java
> dao/MyDao.java
> Main.java
> would produce
> org.foo.bar.mymodule.myapp.dao.MyDao.java
> org.foo.bar.mymodule.myapp.Main.java
--
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
[jira] Commented: (ARCHETYPE-192) Property replacement for required
properties
Posted by "Benjamin Papez (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/ARCHETYPE-192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=150619#action_150619 ]
Benjamin Papez commented on ARCHETYPE-192:
------------------------------------------
I have a use case, where I would need to reformat an existing property and use it as default value for another property. If for instance the artifactId is my-templates, I would like to automatically suggest creating a file called MyTemplates.properties. Using __artifactId__.properties now creates my-templates.properties which does not match the Java standard naming conventions. So would it somehow be possible to define a format conversion of the arifactId property and create another property using this Camel Case convention?
> Property replacement for required properties
> --------------------------------------------
>
> Key: ARCHETYPE-192
> URL: http://jira.codehaus.org/browse/ARCHETYPE-192
> Project: Maven Archetype
> Issue Type: Improvement
> Affects Versions: 2.0-alpha-3
> Reporter: Will Gomes
> Fix For: 2.0-alpha-5
>
>
> It would be nice if one could define default values for required properties using other required properties.
> For example:
> <requiredProperties>
> <requiredProperty key="myModule" />
> <requiredProperty key="myApp" />
> <requiredProperty key="package">
> <defaultValue>org.foo.bar.${myModule}.${myApp}</defaultValue>
> </requiredProperty>
> </requiredProperties>
> having resources
> src/main/java
> dao/MyDao.java
> Main.java
> would produce
> org.foo.bar.mymodule.myapp.dao.MyDao.java
> org.foo.bar.mymodule.myapp.Main.java
--
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