I need to refer to java.io.tmpdir in my application.conf file
I printed content of my config with
val c = ConfigFactory.load()
System.e
Forward references work fine; I believe the issue is just that you have the ${}
syntax inside of quotes, so it doesn't have special meaning. Try it like this:
url = "jdbc:h2:file:"${java.io.tmpdir}"/db;DB_CLOSE_DELAY=-1"
(note that the ${}
stuff is not quoted)
In the HOCON format, anything that's valid JSON will be interpreted as it would be in JSON, so quoted strings for example don't have special syntax inside them, other than the escape sequences JSON supports.