Class NativeImageArgFile
java.lang.Object
org.springframework.boot.loader.tools.NativeImageArgFile
Class to work with the native-image argfile.
- Since:
- 3.0.0
- Author:
- Moritz Halbritter, Phillip Webb
-
Field Summary
-
Constructor Summary
ConstructorDescriptionNativeImageArgFile
(Collection<String> excludes) Constructs a new instance with the given excludes. -
Method Summary
Modifier and TypeMethodDescriptionvoid
writeIfNecessary
(ThrowingConsumer<List<String>> writer) Write the arguments file if it is necessary.
-
Field Details
-
LOCATION
Location of the argfile.- See Also:
-
-
Constructor Details
-
NativeImageArgFile
Constructs a new instance with the given excludes.- Parameters:
excludes
- dependencies for which the reachability metadata should be excluded
-
-
Method Details
-
writeIfNecessary
Write the arguments file if it is necessary.- Parameters:
writer
- consumer that should write the contents
-