Class NativeImageResourcePatternsBuildItem.Builder

java.lang.Object
io.quarkus.deployment.builditem.nativeimage.NativeImageResourcePatternsBuildItem.Builder
Enclosing class:
NativeImageResourcePatternsBuildItem

public static class NativeImageResourcePatternsBuildItem.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

    • excludeGlob

      Deprecated, for removal: This API element is subject to removal in a future version.
      Excluding resources is not supported in the new reachability-metadata.json file used with Mandrel/GraalVM 25.0 and onwards. Quarkus plans to adopt the use of reachability-metadata.json for Mandrel/GraalVM 23.1 for JDK 21 as well (see https://github.com/quarkusio/quarkus/issues/41016)
      Add a glob pattern for matching resource paths that should not be added to the native image.

      Use slash (/) as a path separator on all platforms. Globs must not start with slash. See NativeConfig.ResourcesConfig.includes() for the supported glob syntax.

      Parameters:
      glob - the glob pattern to add to the list of patterns to exclude
      Returns:
      this NativeImageResourcePatternsBuildItem.Builder
    • excludeGlobs

      Deprecated, for removal: This API element is subject to removal in a future version.
      Excluding resources is not supported in the new reachability-metadata.json file used with Mandrel/GraalVM 25.0 and onwards. Quarkus plans to adopt the use of reachability-metadata.json for Mandrel/GraalVM 23.1 for JDK 21 as well (see https://github.com/quarkusio/quarkus/issues/41016)
      Add a collection of glob patterns for matching resource paths that should not be added to the native image.

      Use slash (/) as a path separator on all platforms. Globs must not start with slash. See NativeConfig.ResourcesConfig.includes() for the supported glob syntax.

      Parameters:
      globs - the glob patterns to add to the list of patterns to exclude
      Returns:
      this NativeImageResourcePatternsBuildItem.Builder
    • excludeGlobs

      @Deprecated(since="3.29", forRemoval=true) public NativeImageResourcePatternsBuildItem.Builder excludeGlobs(String... globs)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Excluding resources is not supported in the new reachability-metadata.json file used with Mandrel/GraalVM 25.0 and onwards. Quarkus plans to adopt the use of reachability-metadata.json for Mandrel/GraalVM 23.1 for JDK 21 as well (see https://github.com/quarkusio/quarkus/issues/41016)
      Add an array of glob patterns for matching resource paths that should not be added to the native image.

      Use slash (/) as a path separator on all platforms. Globs must not start with slash. See NativeConfig.ResourcesConfig.includes() for the supported glob syntax.

      Parameters:
      globs - the glob patterns to add to the list of patterns to exclude
      Returns:
      this NativeImageResourcePatternsBuildItem.Builder
    • excludePattern

      @Deprecated(since="3.29", forRemoval=true) public NativeImageResourcePatternsBuildItem.Builder excludePattern(String pattern)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Excluding resources is not supported in the new reachability-metadata.json file used with Mandrel/GraalVM 25.0 and onwards. Quarkus plans to adopt the use of reachability-metadata.json for Mandrel/GraalVM 23.1 for JDK 21 as well (see https://github.com/quarkusio/quarkus/issues/41016)
      Add a regular expression for matching resource paths that should not be added to the native image.

      Use slash (/) as a path separator on all platforms. The pattern must not start with slash.

      Parameters:
      pattern - the regular expression to add to the list of patterns to exclude
      Returns:
      this NativeImageResourcePatternsBuildItem.Builder
    • excludePatterns

      Deprecated, for removal: This API element is subject to removal in a future version.
      Excluding resources is not supported in the new reachability-metadata.json file used with Mandrel/GraalVM 25.0 and onwards. Quarkus plans to adopt the use of reachability-metadata.json for Mandrel/GraalVM 23.1 for JDK 21 as well (see https://github.com/quarkusio/quarkus/issues/41016)
      Add a collection of regular expressions for matching resource paths that should not be added to the native image.

      Use slash (/) as a path separator on all platforms. The pattern must not start with slash.

      Parameters:
      patterns - the regular expressions to add to the list of patterns to exclude
      Returns:
      this NativeImageResourcePatternsBuildItem.Builder
    • excludePatterns

      @Deprecated(since="3.29", forRemoval=true) public NativeImageResourcePatternsBuildItem.Builder excludePatterns(String... patterns)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Excluding resources is not supported in the new reachability-metadata.json file used with Mandrel/GraalVM 25.0 and onwards. Quarkus plans to adopt the use of reachability-metadata.json for Mandrel/GraalVM 23.1 for JDK 21 as well (see https://github.com/quarkusio/quarkus/issues/41016)
      Add an array of regular expressions for matching resource paths that should not be added to the native image.

      Use slash (/) as a path separator on all platforms. The pattern must not start with slash.

      Parameters:
      patterns - the regular expressions to add to the list of patterns to exclude
      Returns:
      this NativeImageResourcePatternsBuildItem.Builder
    • includeGlob

      Add a glob pattern for matching resource paths that should be added to the native image.

      Use slash (/) as a path separator on all platforms. Globs must not start with slash. See NativeConfig.ResourcesConfig.includes() for the supported glob syntax.

      Parameters:
      glob - the glob pattern to add
      Returns:
      this NativeImageResourcePatternsBuildItem.Builder
    • includeGlobs

      Add a collection of glob patterns for matching resource paths that should be added to the native image.

      Use slash (/) as a path separator on all platforms. Globs must not start with slash. See NativeConfig.ResourcesConfig.includes() for the supported glob syntax.

      Parameters:
      globs - the glob patterns to add
      Returns:
      this NativeImageResourcePatternsBuildItem.Builder
    • includeGlobs

      public NativeImageResourcePatternsBuildItem.Builder includeGlobs(String... globs)
      Add an array of glob patterns for matching resource paths that should be added to the native image.

      Use slash (/) as a path separator on all platforms. Globs must not start with slash. See NativeConfig.ResourcesConfig.includes() for the supported glob syntax.

      Parameters:
      globs - the glob patterns to add
      Returns:
      this NativeImageResourcePatternsBuildItem.Builder
    • includePattern

      @Deprecated(since="3.29", forRemoval=true) public NativeImageResourcePatternsBuildItem.Builder includePattern(String pattern)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Including resources using patterns is not supported in the new reachability-metadata.json file used with Mandrel/GraalVM 25.0 and onwards. Quarkus plans to adopt the use of reachability-metadata.json for Mandrel/GraalVM 23.1 for JDK 21 as well (see https://github.com/quarkusio/quarkus/issues/41016)
      Add a regular expression for matching resource paths that should be added to the native image.

      Use slash (/) as a path separator on all platforms. The pattern must not start with slash.

      Parameters:
      pattern - the regular expression to add
      Returns:
      this NativeImageResourcePatternsBuildItem.Builder
    • includePatterns

      Deprecated, for removal: This API element is subject to removal in a future version.
      Including resources using patterns is not supported in the new reachability-metadata.json file used with Mandrel/GraalVM 25.0 and onwards. Quarkus plans to adopt the use of reachability-metadata.json for Mandrel/GraalVM 23.1 for JDK 21 as well (see https://github.com/quarkusio/quarkus/issues/41016)
      Add a collection of regular expressions for matching resource paths that should be added to the native image.

      Use slash (/) as a path separator on all platforms. The patterns must not start with slash.

      Parameters:
      patterns - the regular expressions to add
      Returns:
      this NativeImageResourcePatternsBuildItem.Builder
    • includePatterns

      @Deprecated(since="3.29", forRemoval=true) public NativeImageResourcePatternsBuildItem.Builder includePatterns(String... patterns)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Including resources using patterns is not supported in the new reachability-metadata.json file used with Mandrel/GraalVM 25.0 and onwards. Quarkus plans to adopt the use of reachability-metadata.json for Mandrel/GraalVM 23.1 for JDK 21 as well (see https://github.com/quarkusio/quarkus/issues/41016)
      Add an array of regular expressions for matching resource paths that should be added to the native image.

      Use slash (/) as a path separator on all platforms. The patterns must not start with slash.

      Parameters:
      patterns - the regular expressions to add
      Returns:
      this NativeImageResourcePatternsBuildItem.Builder