Class NativeImageResourcePatternsBuildItem


  • public final class NativeImageResourcePatternsBuildItem
    extends MultiBuildItem
    A build item that indicates that a set of resource paths defined by regular expression patterns or globs should be included in the native image.

    Globs passed to the includeGlob*() methods of the NativeImageResourcePatternsBuildItem.Builder are transformed to regular expressions internally. See NativeConfig.ResourcesConfig.includes for the supported glob syntax.

    The patterns are passed to the native image builder using the com.oracle.svm.hosted.ResourcesFeature API. The same mechanism (and regular expression syntax) is used by native-image's -H:ResourceConfigurationFiles, -H:IncludeResources and -H:ExcludeResources (since GraalVM 20.3.0) command line options.

    Related build items: