Sun, 10 Sep 2023 13:12:54 +0200
add missing shId() in feature var name
src/main/java/de/unixwork/uwproj/ConfigVar.java | file | annotate | diff | comparison | revisions | |
src/main/java/de/unixwork/uwproj/Feature.java | file | annotate | diff | comparison | revisions |
--- a/src/main/java/de/unixwork/uwproj/ConfigVar.java Sun Sep 10 13:10:07 2023 +0200 +++ b/src/main/java/de/unixwork/uwproj/ConfigVar.java Sun Sep 10 13:12:54 2023 +0200 @@ -15,6 +15,7 @@ ConfigVar var = new ConfigVar(); if (varNameIsElemName) { + // take the node name literally and don't apply shId() var.varName = e.getNodeName().toUpperCase(); } else { String name = e.getAttribute("name");
--- a/src/main/java/de/unixwork/uwproj/Feature.java Sun Sep 10 13:10:07 2023 +0200 +++ b/src/main/java/de/unixwork/uwproj/Feature.java Sun Sep 10 13:12:54 2023 +0200 @@ -5,6 +5,7 @@ import java.util.List; import static de.unixwork.uwproj.Util.isNotNullOrBlank; +import static de.unixwork.uwproj.Util.shId; public class Feature { private String name; @@ -37,7 +38,7 @@ } public String getVarName() { - return "FEATURE_" + name.toUpperCase(); + return shId("FEATURE_" + name.toUpperCase()); } public List<String> getDependencies() {