config
config copied to clipboard
How to remove a key from base include
I am having a base conf which is like
Value{
key1{}
key2{}
}
There are 2 derived conf, which are conf1
include "base"
value{
key3{}
}
and conf2
include "base"
value{
key4{}
}
What I want is to use key1 in conf1 and key2 in conf2. how should I do it?
You can ignore it or redefine the value (i.e., set to null and use hasPathOrNull(String) instead of hasPath(String) in code). Alternatively, rename the "value" to "value_src" in base.conf and append keyX=${value_src.keyX} in derived files.