In my archetype-metadata.xml
, I have a property defined like:
<requiredProperties>
<requiredProperty key="foo"/>
</requiredProperties>
I can use Velocity for manipulation of text inside files, for example:
#set( $foo-lower = $foo.toLowerCase() )
...
<someTag>${foo-lower}</someTag>
I also use variable substitution in filenames, like: myfile__foo__.txt
Is there a way to apply Velocity pre-processing in a way similar to the approach used inside a file, so that I could use myfile__foo-lower__.txt
?
Perhaps a way to globally define a new variable, that will apply to all substitutions everywhere?