Added support for argument file provided...#201
Added support for argument file provided...#201pivotal-david-osullivan wants to merge 2 commits intomainfrom
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-configarguments 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
@argfileformat that is supported in the same way as with thejavacommand.Use Cases
Currently any
--exclude-configargs 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