string-concatenation
In java properties file itself can we concatenate two or more than two variables together?
I have gateway.properties file and it has following content: current.path=c:/projects/sdk/ log.path=storage/logs Here, in this file: Either, I want to add third variable which is current.log.path and its value must be: current.log.path=current.path + log.path Or, I want to append string to current.path variable as below: current.path=current.path+log.path I have a situation that I can't do this concatenation/append job in my Java file. In Java its pretty simple but I have no idea how to do within file itself.
There is no built-in mechanism to have something like variables in a property file. You could try Apache Commons Configuration. I think it is what you are looking for.
Related Links
ConcatRelated Function Returns All Values
In java properties file itself can we concatenate two or more than two variables together?
“No message” when writing string with console.log()
Moqui:We can use create an view with concatenating two or more columns as single column. simple can we do concatenatio in moqui view creqtion.
Error in ConcatRelated
String Concatenating functions in Progress 4GL?
sybase - simple concatenation
How do you concatenate strings in a Puppet .pp file?