chore: add modernize tool integration for code modernization (#9251)

Co-authored-by: knqyf263 <knqyf263@users.noreply.github.com>
This commit is contained in:
Teppei Fukuda
2025-07-29 11:13:54 +04:00
committed by GitHub
parent 54832a77b5
commit d2d0ec2b6d
68 changed files with 145 additions and 216 deletions

View File

@@ -29,8 +29,8 @@ func evaluateVariable(s string, props map[string]string, seenProps []string) str
// env.X: https://maven.apache.org/pom.html#Properties
// e.g. env.PATH
if strings.HasPrefix(m[1], "env.") {
newValue = os.Getenv(strings.TrimPrefix(m[1], "env."))
if after, ok := strings.CutPrefix(m[1], "env."); ok {
newValue = os.Getenv(after)
} else {
// <properties> might include another property.
// e.g. <animal.sniffer.skip>${skipTests}</animal.sniffer.skip>