Repository navigation
Fix excessive Windows jlink command quoting - #698
Open
efegokdemir wants to merge 3 commits into
Open
efegokdemir wants to merge 3 commits into
efegokdemir wants to merge 3 commits into
Conversation
Use supported Invoker inclusion and exclusion selectors to run the Java 14 requirement check on Java 9 through 13. The former 9-13 selector matched a version prefix rather than the intended range.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #697
On Windows, maven-shared-utils'
CmdShellalready quotes the complete/X /Ccommand. The toolchain executor was causing the command to be quoted a second time, producing a failingcmd.exe /C ""..."invocation.This keeps the existing Unix command construction unchanged and uses a small Windows shell adapter so the executable path and arguments are passed as one correctly quoted command. The Windows-focused test now guards against the duplicated quotes.
Validation:
mvn -Dspotless.skip=true -Dtest=JLinkMojoTest test— passed (6 tests, 1 skipped)git diff --checkNoSuchFieldErrorunder Java 27; Spotless was skipped only for the focused test run.