I apologize for the title.. i couldn’t find a better way to explain the situation.
I use to load properties file using a Property class as described in the URL http://www.exampledepot.com/egs/java.util/Props.html
my question is can I use properties within that properties file ?
example:
test.properties
url.main="http://mysite.com"
url.games={url.main}/games
url.images={url.main}/images
.
.
.
is that possible with some other syntax?
thanks
Never seen that before. You could make your own preprocessor of course. As long as the referenced property occurs before any references to it, you should be able to implement it using some regular expressions/string replacement. But: I would not recommend this method.
Better resolve the duplication by defining different properties:
url.games={url.main}/gamesintourl.games_extension=/gamesurl.maintourl.games_extensionto get the full games url in your application code.