Interface NativeConfig.ResourcesConfig
- Enclosing interface:
NativeConfig
-
Method Summary
-
Method Details
-
includes
A comma separated list of globs to match resource paths that should be added to the native image.Use slash (
/) as a path separator on all platforms. Globs must not start with a slash. Globs must not start with a globstar (**) as wildly general globs that target the entire classpath are rejected.By default, no resources are included.
Example: Given that you have
src/main/resources/ignored.pngandsrc/main/resources/foo/selected.pngin your source tree and one of your dependency JARs containsbar/some.txtfile, with the following configurationquarkus.native.resources.includes = foo/**,bar/**/*.txt
the files
src/main/resources/foo/selected.pngandbar/some.txtwill be included in the native image, whilesrc/main/resources/ignored.pngwill not be included.Supported glob features
Feature Description *Matches a (possibly empty) sequence of characters that does not contain slash ( /)**Matches a (possibly empty) sequence of characters that may contain slash ( /)\The escape character Note that there are three levels of escaping when passing this option via
application.properties:application.propertiesparser- MicroProfile Config list converter that splits the comma separated list
- Glob parser
\) as the escaping character. So you need to use an appropriate number of backslashes depending on which level you want to escape.Note that Quarkus extensions typically include the resources they require by themselves. This option is useful in situations when the built-in functionality is not sufficient.
-