configuration - Typesafe config: Load additional config from path external to packaged scala application -


my scala application packaged jar. when run app, needs read additional config file stored externally app jar. looking functionality similar typesafe config library other solutions welcome ! there way below:

val hdfsconfig = configfactory.load("my_path/hdfs.conf") 

i think want is:

val mycfg =  configfactory.parsefile(new file("my_path/hdfs.conf")) 

Comments

Popular posts from this blog

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

ios - CFRelease causing crash in iPad application -