Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-alpha-3
-
Fix Version/s: 2.0-alpha-5
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
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
Issue Links
| This issue is related to: | ||||
| ARCHETYPE-362 | Replacing properties in default value of other properties doesn't work due to faulty ordering. |
|
|
|
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?