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

Quote all classpath entries to handle spaces #1387

Merged
merged 1 commit into from
Feb 17, 2025
Merged

Conversation

hcoles
Copy link
Owner

@hcoles hcoles commented Feb 17, 2025

No description provided.

@hcoles hcoles force-pushed the bug/spaces_in_paths branch 4 times, most recently from 4b9a083 to 0aad768 Compare February 17, 2025 12:00
@hcoles hcoles force-pushed the bug/spaces_in_paths branch from 0aad768 to 67ef7b2 Compare February 17, 2025 12:16
@hcoles hcoles merged commit ba115b5 into master Feb 17, 2025
6 checks passed
@@ -11,6 +11,7 @@
import java.net.URL;
import java.util.Arrays;
import java.util.Collections;
import java.util.Optional;
Copy link
Contributor

Choose a reason for hiding this comment

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

?

@@ -108,8 +108,8 @@ private List<String> createLaunchArgs(JavaAgent agentJarLocator, List<String> ar
List<String> cmd = new ArrayList<>();

cmd.add("-classpath");
cmd.add(classPath);

cmd.add(classPath.replace(" ", "\" \""));
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder, if it can affect the Gradle plugin, in the way how it already passes the classpath entries 🤔

Copy link
Owner Author

Choose a reason for hiding this comment

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

It has just occurred to me that this change would cause a problem if gradle were already quoting the the spaces. Otherwise, this should have no impact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants