template substitution for tsInfo part of the definition
This commit is contained in:
parent
5f0000edc1
commit
6b7baaaecc
Binary file not shown.
|
@ -59,7 +59,7 @@ public class ConfigField {
|
||||||
this.type = type;
|
this.type = type;
|
||||||
this.arraySizeVariableName = arraySizeAsText;
|
this.arraySizeVariableName = arraySizeAsText;
|
||||||
this.arraySize = arraySize;
|
this.arraySize = arraySize;
|
||||||
this.tsInfo = tsInfo;
|
this.tsInfo = VariableRegistry.INSTANCE.applyVariables(tsInfo);
|
||||||
this.isIterate = isIterate;
|
this.isIterate = isIterate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,8 @@ public class VariableRegistry extends TreeMap<String, String> {
|
||||||
* @return string with variable values inlined
|
* @return string with variable values inlined
|
||||||
*/
|
*/
|
||||||
public String applyVariables(String line) {
|
public String applyVariables(String line) {
|
||||||
|
if (line == null)
|
||||||
|
return null;
|
||||||
Matcher m;
|
Matcher m;
|
||||||
while ((m = VAR.matcher(line)).find()) {
|
while ((m = VAR.matcher(line)).find()) {
|
||||||
String key = m.group(2);
|
String key = m.group(2);
|
||||||
|
|
Loading…
Reference in New Issue