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?

Categories

HOME
xml
api
cobalt
jmeter
flex
numbers
camera
spring-data-redis
access
parameters
tail
discrete-mathematics
bing-maps
pcl-crypto
onedrive-api
alpacajs
standards
mathprog
git-extensions
enterprise-miner
simpleitk
gulp-watch
roslyn
joptionpane
pimcore
aggregation
definitelytyped
itunes
maze
gpio
ms-access-web-app
entity-relationship-model
constexpr
dotspatial
biztalk-rule-engine
modalviewcontroller
ideascript
password-protection
bc
ods
apns-php
demo
p4merge
dcmtk
android-ibeacon
outputcache
angular-http
apache-spark-dataset
stylecop
strftime
phpdbg
dynamic-linq
xbmc
builder
sonarlint-eclipse
geotiff
identification
lightning
modelsim
baidu
bootstrap-tags-input
pocketsphinx-android
simplepie
redbeard-ios
xcode-server
vulcanize
tinkerpop3
dup
tracker-enabled-dbcontext
cda
fink
httpruntime.cache
user-management
crouton-os
gocql
rewrite
ess
dock
canalyzer
batik
atoi
snackbar
mmwormhole
delayed-execution
paw
raygun
rcaller
ray
dct
ora-06550
cocoalibspotify-2.0
beaker-testing
facebook-timeline
jquery-1.9
pclzip
android-icons
traceability
android-sdk-2.3
argouml
saleslogix
dajaxice
jdb
mapping-by-code
stress
luabind
ikimagebrowserview
cuteeditor
objective-j
instantiationexception
zend-rest
qtabbar
murmurhash
localizable.strings
image-capture

Resources

Encrypt Message