gnodet commented on PR #14211:
URL: https://github.com/apache/maven/pull/14211#issuecomment-7346261821
Both Copilot findings are addressed in the latest commit:
**1. Maven version range semantics for property activation** — when
`<name>maven.version</name>` is paired with a range value like `[4.0.0,5.0.0)`,
the evaluator now uses `GenericVersionScheme` (the same backing scheme as
`PropertyProfileActivator`) to test range containment instead of doing a plain
string comparison. Negation (`![4.0.0,5.0.0)`) correctly inverts the range
result. Malformed ranges fall through to inactive.
**2. File path interpolation** — `${...}` references in `<exists>` and
`<missing>` paths are now expanded using user and system properties before the
file-system check. User properties take precedence over system properties,
matching the lookup order elsewhere in the evaluator. Unknown references are
left as-is (no silent loss).
Both fixes have regression tests.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]