Skip to content

Fix issue with double quotes when launching java processes on windows #34262

Merged
ljacomet merged 12 commits intomasterfrom
gh/issues/6072
Aug 25, 2025
Merged

Fix issue with double quotes when launching java processes on windows #34262
ljacomet merged 12 commits intomasterfrom
gh/issues/6072

Conversation

@wheeleme
Copy link
Copy Markdown
Contributor

Fixes #6072

Context

User encountered issue where Java process on Windows would drop double quotes in Java Processes. This PR checks for double quotes and escapes them so Windows interprets them correctly.

Reviewing cheatsheet

Before merging the PR, comments starting with

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

@wheeleme wheeleme added a:bug This doesn't work as expected in:exec-tasks labels Jul 15, 2025
@wheeleme wheeleme added this to the 9.1.0 RC1 milestone Jul 15, 2025
@wheeleme wheeleme marked this pull request as ready for review July 15, 2025 20:51
@wheeleme wheeleme requested a review from a team as a code owner July 15, 2025 20:51
@wheeleme wheeleme requested review from a team and big-guy July 15, 2025 20:51
@ghale ghale changed the title Fixing issue with Double Quotes when Launching Java Processes on Windows Fix issue with double quotes when launching java processes on windows Jul 17, 2025
Comment thread subprojects/core/src/test/java/org/gradle/api/internal/attributes/MyNamed.java Outdated
Copy link
Copy Markdown
Member

@ljacomet ljacomet left a comment

Choose a reason for hiding this comment

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

See previous comments.

💅 Also remove the added blank line in getAllJvmArgs

@ghale ghale modified the milestones: 9.1.0 RC1, 9.2.0 RC1 Aug 1, 2025
@wheeleme wheeleme force-pushed the gh/issues/6072 branch 2 times, most recently from 341b097 to 1c36187 Compare August 4, 2025 22:42
@gradle gradle deleted a comment from wheeleme Aug 11, 2025
@gradle gradle deleted a comment from wheeleme Aug 11, 2025
@gradle gradle deleted a comment from wheeleme Aug 11, 2025
@gradle gradle deleted a comment from wheeleme Aug 11, 2025
@gradle gradle deleted a comment from wheeleme Aug 11, 2025
@gradle gradle deleted a comment from wheeleme Aug 11, 2025
@gradle gradle deleted a comment from wheeleme Aug 11, 2025
@gradle gradle deleted a comment from wheeleme Aug 11, 2025
@gradle gradle deleted a comment from wheeleme Aug 11, 2025
@gradle gradle deleted a comment from wheeleme Aug 11, 2025
@gradle gradle deleted a comment from wheeleme Aug 11, 2025
@gradle gradle deleted a comment from wheeleme Aug 11, 2025
@gradle gradle deleted a comment from wheeleme Aug 11, 2025
@gradle gradle deleted a comment from wheeleme Aug 11, 2025
@gradle gradle deleted a comment from wheeleme Aug 11, 2025
@wheeleme
Copy link
Copy Markdown
Contributor Author

@bot-gradle test this

@bot-gradle

This comment has been minimized.

@bot-gradle
Copy link
Copy Markdown
Collaborator

The following builds have passed:

@wheeleme
Copy link
Copy Markdown
Contributor Author

@ljacomet Could you take a second look when you have a chance?

@ljacomet ljacomet added this pull request to the merge queue Aug 25, 2025
Merged via the queue into master with commit c41eba5 Aug 25, 2025
32 checks passed
@ljacomet ljacomet deleted the gh/issues/6072 branch August 25, 2025 10:42
blindpirate added a commit that referenced this pull request Sep 18, 2025
… windows (#34262)"

This reverts commit c41eba5, reversing
changes made to fa7cf57.
cobexer added a commit that referenced this pull request Sep 18, 2025
Signed-off-by: Christoph Obexer <[email protected]>
github-merge-queue Bot pushed a commit that referenced this pull request Sep 18, 2025
ghale added a commit that referenced this pull request Sep 22, 2025
… windows (#34262)"

This reverts commit c41eba5, reversing
changes made to fa7cf57.
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.

On Windows, system properties with quotes and spaces are not passed to forked Java processes correctly

7 participants