Skip to content

Revert #34262 (Escape double quotes in Java arguments on windows)#35080

Merged
ghale merged 1 commit intoreleasefrom
gh/issues/private-4847
Sep 22, 2025
Merged

Revert #34262 (Escape double quotes in Java arguments on windows)#35080
ghale merged 1 commit intoreleasefrom
gh/issues/private-4847

Conversation

@ghale
Copy link
Copy Markdown
Member

@ghale ghale commented Sep 22, 2025

Although #34262 fixed the issue where quotes were being stripped from arguments, it introduced breaking behavior when the expectation is that the quotes should be stripped while processing the arguments. In other words, there are cases where the expectation is that the quotes are stripped and there are cases where the expectation is that they should be preserved. We don't have a good way to guess which the user wants, so changing the behavior becomes a breaking change for someone.

We're reverting this for now to return to the previous behavior. We may consider doing something to improve the situation in Gradle 10.0.

Reverts #34262
Fixes https://github.com/gradle/gradle-private/issues/4847

Reviewing cheatsheet

Before merging the PR, comments starting with

  • ❌ ❓must be fixed
  • 🤔 💅 should be fixed
  • 💭 may be fixed
  • 🎉 celebrate happy things

… windows (#34262)"

This reverts commit c41eba5, reversing
changes made to fa7cf57.
@ghale ghale added this to the 9.2.0 RC1 milestone Sep 22, 2025
@ghale ghale self-assigned this Sep 22, 2025
@ghale ghale added a:bug This doesn't work as expected in:exec-tasks labels Sep 22, 2025
@ghale
Copy link
Copy Markdown
Member Author

ghale commented Sep 22, 2025

@bot-gradle test this

@bot-gradle

This comment has been minimized.

@ghale ghale marked this pull request as ready for review September 22, 2025 13:17
@ghale ghale requested a review from a team as a code owner September 22, 2025 13:17
@ghale ghale requested a review from jvandort September 22, 2025 13:17
@bot-gradle
Copy link
Copy Markdown
Collaborator

The following builds have failed:

Copy link
Copy Markdown
Member

@cobexer cobexer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not review the changes, but wan't to make it explicit that this is fine to merge to release after it got reviewed!

@ghale ghale added this pull request to the merge queue Sep 22, 2025
Merged via the queue into release with commit 0eebacf Sep 22, 2025
22 checks passed
@ghale ghale deleted the gh/issues/private-4847 branch September 22, 2025 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a:bug This doesn't work as expected in:exec-tasks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants