config icon indicating copy to clipboard operation
config copied to clipboard

How to remove a key from base include

Open codebyswaraj opened this issue 5 years ago • 1 comments

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?

codebyswaraj avatar Sep 03 '20 06:09 codebyswaraj

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.

radist-nt avatar Feb 08 '21 09:02 radist-nt