Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.2
-
Fix Version/s: None
-
Component/s: Plugin
-
Labels:None
-
Number of attachments :
Description
In required properties in an archetype descriptor, you can use expressions such as :
<requiredProperty key="className">
<defaultValue>$
$
{rootArtifactId.substring(1)}</defaultValue>
</requiredProperty>
But you can't in a path name (e.g. you can't name a folder as _rootArtifactId.substring(1)_).
For such a case, another solution would be the ability to store a hidden value (not visible by the user who generates a project) in the Velocity context and to able to use it in a path name (e.g. define somewhere MyFolderName as rootArtifactId.substring(1) and then use _MyFolderName_ as a folder name).