Commit 8bf5b0e
committed
fix(wrapper): trim property keys when parsing maven-wrapper.properties
When an IDE or formatter adds spaces around '=' in
maven-wrapper.properties (e.g., 'distributionUrl = ...'),
the shell parser's IFS='=' split leaves trailing whitespace
in the key, causing case pattern matches to fail with
'cannot read distributionUrl property'.
Apply trim() to keys in all three property-parsing loops
(mvnw: wrapperUrl + wrapperSha256Sum; only-mvnw: distributionUrl +
distributionSha256Sum) to tolerate such formatting.
Fixes #3691 parent 65f601b commit 8bf5b0e
2 files changed
Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
| |||
0 commit comments