Class NativeImageArgFile

java.lang.Object
org.springframework.boot.loader.tools.NativeImageArgFile

public final class NativeImageArgFile extends Object
Class to work with the native-image argfile.
Since:
3.0.0
Author:
Moritz Halbritter, Phillip Webb
  • Field Details

  • Constructor Details

    • NativeImageArgFile

      public NativeImageArgFile(Collection<String> excludes)
      Constructs a new instance with the given excludes.
      Parameters:
      excludes - dependencies for which the reachability metadata should be excluded
  • Method Details

    • writeIfNecessary

      public void writeIfNecessary(ThrowingConsumer<List<String>> writer)
      Write the arguments file if it is necessary.
      Parameters:
      writer - consumer that should write the contents