max wrote:
btw. fyi the next version will use freemarker instead of velocity.
I already read that Velocity will be replaced by freemarker. I am not very happy with that, but I have to live with that. Best would be to make the template engine configurable if possible.
max wrote:
still would be interested in knowing what additonal setup you want to do ?
I want to set the parameter
Code:
velocimarco.permissions.allow.inline.to.replace.global=true
I wrote a macro to get
Code:
public static final String MY_PROPERTY = "myProperty";
constants in my classes. The macro generates the MY_PROPERTY String from a property-name. Even if the macro is not overridden locally I get a warning when generating my templates.
Code:
[hibernatetool] WARN logVelocityMessage, Velocimacro : VM addition rejected : getUpperCaseAccessor : inline not allowed to replace existing VM
As I need this String in serveral places in my code, I thought best would be to write a macro for that.
Axel