constretto-core icon indicating copy to clipboard operation
constretto-core copied to clipboard

Spring-compatible property references?

Open tingstad opened this issue 10 years ago • 3 comments

Spring uses ${...} to reference other properties.

Constretto seems to support use of the (undocumented?) syntax #{...} for variable resolving.

The organization I currently work at has some .properties files which are used by several applications, most of which are Spring based. Some properties employ the ${...} placeholder. It would be nice to be able to use Constretto in a couple of applications.

Is is possible for Constretto to support the ${...} syntax that Spring uses?

tingstad avatar Nov 30 '15 10:11 tingstad

Hi..

In the current implementation there is no simple way of changing the placeholder unfortunately. It is hidden deep inside the CPrimitive class used for parsing values across different file types. If I remember correctly there was a problem using $ as a prefix in certain stores but cannot remember now the issue. But sure. There could be a way of having this as a configurable option

kaarenilsen avatar Nov 30 '15 11:11 kaarenilsen

I will add this feature to the (too) long awaited Constretto 3 release

zapodot avatar Dec 01 '15 15:12 zapodot

Great!

tingstad avatar Dec 04 '15 11:12 tingstad