-
Notifications
You must be signed in to change notification settings - Fork 9
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
Added support for argument file provided... #201
Conversation
156762f
to
7d531a3
Compare
How does this differ from Also, what exactly is an The |
The main difference is that we want a way to provide arguments as something that's packaged inside the jar and applied by convention. As I understand it, the
They're a standard adopted by java command line tools. Some documentation is available here. There's also a brief comment about them if you run
|
Closing in favour of #204 |
by Spring Boot for native builds
Summary
As discussed in spring-projects/spring-boot#31782 & #196, Spring Boot will generate an argument file containing the
--exclude-config
arguments necessary for a jar to be converted to a native-image executable.This PR adds support for passing this argfile to the native-image binary using the
@argfile
format that is supported in the same way as with thejava
command.Use Cases
Currently any
--exclude-config
args necessary to successfully build from a jar must be manually specified viaBP_NATIVE_IMAGE_BUILD_ARGUMENTS
- this change allows these args to be consumed directly from the jar itself.Checklist