[GR-58214] Respect order of arguments for explict main class and image name. #9768
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.
This PR fixes a long standing bug in the native-image driver. native-image allows positional arguments for specifying the main class name and the image name. Previously those positional arguments always won even if a later option states something else for class name or image name.
E.g.
Previously the built image would be named
hello
and the-o hello-image
would not been able to change that even though it comes after thehello
positional argument.Now this is fixed and the image would be named
hello-image
as it should be.This bug was especially annoying in the context of native-image bundles. E.g. If a bundle gets created with e.g.
it was impossible to rebuild that bundle and have it build the image with custom name. I.e.
would still have produced an image named
foobar
. Now with this fixed it produces an image namedfoobar_optimized
.