java properties files, using a key as another keys value, is this possible -
i know if there way use key key's value in .properties files.
for example possible, or there other way achieve similar this?
key = another_key app.name=stack on flow app.title.welcome=welcome {app.name} so when value of app.title.welcome should "welcome stack on flow"
the apache commons configuration project has implementation capable of doing variable interpolation.
read section named variable interpolation
application.name = killer app application.version = 1.6.2 application.title = ${application.name} ${application.version} you need third-party library in class path, on other hand not have worry writing yet implementation :)
you might read properties how to well.
Comments
Post a Comment