Edit source files with custom maven archetype
Posted
by
Scobal
on Stack Overflow
See other posts from Stack Overflow
or by Scobal
Published on 2010-06-21T15:14:47Z
Indexed on
2010/12/26
1:53 UTC
Read the original article
Hit count: 605
I have created a customer maven archetype and have it setup with some custom requiredProperties:
<requiredProperties>
<requiredProperty key="classPrefix" />
</requiredProperties>
I can use that property to name a file, like so:
__classPrefix__Config.java
My question is can I use that property inside the file. I've tried the following two variations but neither work:
public class ${classPrefix}Config
public class __classPrefix__Config
© Stack Overflow or respective owner