mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-08-30 05:40:34 +00:00
ignore meta string templates in MetaValuePreprocessor
This commit is contained in:
+2
-1
@@ -43,7 +43,8 @@ public class MetaValuePreprocessor extends MetaPreprocessor<Meta> {
|
|||||||
public @NotNull <T> Result<T> process(AnnotatedType t, T c, ConfigLoader configLoader, Meta annotation, DepthTracker depthTracker) {
|
public @NotNull <T> Result<T> process(AnnotatedType t, T c, ConfigLoader configLoader, Meta annotation, DepthTracker depthTracker) {
|
||||||
if(c instanceof String) { // Can we do standard metaconfig?
|
if(c instanceof String) { // Can we do standard metaconfig?
|
||||||
String value = ((String) c).trim();
|
String value = ((String) c).trim();
|
||||||
if(value.startsWith("$")) { // it's a meta value.
|
if(value.startsWith("$") // it's a meta value.
|
||||||
|
&& !value.startsWith("${")) { // it's not a meta string template.
|
||||||
Pair<Configuration, Object> pair = getMetaValue(value.substring(1), depthTracker);
|
Pair<Configuration, Object> pair = getMetaValue(value.substring(1), depthTracker);
|
||||||
|
|
||||||
String configName;
|
String configName;
|
||||||
|
|||||||
Reference in New Issue
Block a user