Class NativeImageResourcePatternsBuildItem.Builder
java.lang.Object
io.quarkus.deployment.builditem.nativeimage.NativeImageResourcePatternsBuildItem.Builder
- Enclosing class:
NativeImageResourcePatternsBuildItem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()includeGlob(String glob) Adds a glob pattern to select resource paths that should be included in the native-image.includeGlobs(String... globs) Adds multiple glob patterns to include resources in the native-image.includeGlobs(Collection<String> globs) Adds a collection of glob patterns to include resources in the native-image.Specifies the Java module from which the resources should be taken (e.g., "java.desktop").
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
-
module
Specifies the Java module from which the resources should be taken (e.g., "java.desktop"). This is useful also for resources from within the JDK itself. Think e.g. some i18n files.- Parameters:
module- the module name- Returns:
- this
NativeImageResourcePatternsBuildItem.Builder
-
includeGlob
Adds a glob pattern to select resource paths that should be included in the native-image.Use a forward slash (
/) as a path separator on all platforms. Globs must not start with a slash. Seefor the supported glob syntax.invalid reference
NativeConfig.ResourcesConfig#includes- Parameters:
glob- the glob pattern to add- Returns:
- this
NativeImageResourcePatternsBuildItem.Builder
-
includeGlobs
Adds a collection of glob patterns to include resources in the native-image.- Parameters:
globs- the glob patterns to add- Returns:
- this
NativeImageResourcePatternsBuildItem.Builder
-
includeGlobs
Adds multiple glob patterns to include resources in the native-image.- Parameters:
globs- the glob patterns to add- Returns:
- this
NativeImageResourcePatternsBuildItem.Builder
-