using Velocity to externalize configuration properties ?

Tom Zeller tzeller at dragonacea.biz
Wed Jul 31 18:03:54 EDT 2013


> Seems potentially heavyweight but maybe. What would be the inputs to the
> template to perform the replacement? A properties file?

Yes, Velocity seems heavyweight, but I think the idea is to be
consistent with the templates.

Input would be one or more properties files, yes.

>>I believe the idea is to use Velocity similar to the v2
>>PropertyReplacement ResourceFilter. The Spring
>>PropertyPlaceholderConfigurer also seems relevant.
>
> I've never looked at the code, what does the current filter use?

I think it simply does String.replace(...) using a pattern, nothing fancy.


More information about the dev mailing list