Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tycho-versions-plugin: PomUtil.expandProperties(): Quote replacements #4453

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

sratz
Copy link
Contributor

@sratz sratz commented Nov 27, 2024

The replacement strings passed to

java.util.regex.Matcher.appendReplacement(StringBuilder, String)

are to be treated literally, no regex capture groups are to be evaluated if the replacement string happens to contains '${...}'.

So they must be quoted using

java.util.regex.Matcher.quoteReplacement(String)

Fixes the regression introduced in #3900.

The replacement strings passed to

  java.util.regex.Matcher.appendReplacement(StringBuilder, String)

are to be treated literally, no regex capture groups are to be
evaluated if the replacement string happens to contains '${...}'.

So they must be quoted using

  java.util.regex.Matcher.quoteReplacement(String)
@sratz sratz added the backport-to-tycho-4.0.x Can be added to a PR to trigger an automatic backport of the change label Nov 27, 2024
Copy link

Test Results

  603 files    603 suites   4h 6m 28s ⏱️
  431 tests   423 ✅  7 💤 1 ❌
1 293 runs  1 269 ✅ 22 💤 2 ❌

For more details on these failures, see this check.

Results for commit 1d5a921.

@sratz sratz enabled auto-merge (rebase) November 27, 2024 12:55
@sratz sratz merged commit e9781e6 into eclipse-tycho:main Nov 27, 2024
13 of 16 checks passed
@eclipse-tycho-bot
Copy link

💚 All backports created successfully

Status Branch Result
tycho-4.0.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-tycho-4.0.x Can be added to a PR to trigger an automatic backport of the change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants