Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring-compatible property references? #62

Open
tingstad opened this issue Nov 30, 2015 · 3 comments
Open

Spring-compatible property references? #62

tingstad opened this issue Nov 30, 2015 · 3 comments

Comments

@tingstad
Copy link

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?

@kaarenilsen
Copy link
Member

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

@zapodot zapodot added this to the Constretto 3.0 milestone Dec 1, 2015
@zapodot
Copy link
Member

zapodot commented Dec 1, 2015

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

@tingstad
Copy link
Author

tingstad commented Dec 4, 2015

Great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants