Class TemplateSetBuildItem
- java.lang.Object
-
- io.quarkus.builder.item.BuildItem
-
- io.quarkus.builder.item.MultiBuildItem
-
- io.quarkiverse.freemarker.deployment.TemplateSetBuildItem
-
public final class TemplateSetBuildItem extends io.quarkus.builder.item.MultiBuildItemA build item that- Embeds the set of class paths templates defined by a base path and a set of include and exclude globs in the native image;
- Adds the base path to the default
Configurationvia aClassTemplateLoaderSee
NativeConfig.ResourcesConfig.includesfor the supported glob syntax.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTemplateSetBuildItem.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TemplateSetBuildItem.Builderbuilder()Optional<String>getBasePath()An emptyOptionalmeans thatgetIncludeGlobs()andgetExcludeGlobs()should be resolved against the root pathList<String>getExcludeGlobs()List<String>getIncludeGlobs()Stringresolve(String relativePath)
-
-
-
Method Detail
-
getBasePath
public Optional<String> getBasePath()
An emptyOptionalmeans thatgetIncludeGlobs()andgetExcludeGlobs()should be resolved against the root path- Returns:
- the base path against which
getIncludeGlobs()andgetExcludeGlobs()should be resolved
-
resolve
public String resolve(String relativePath)
- Parameters:
relativePath- the relative path to resolve- Returns:
- the given
relativePathresolved againstbasePath
-
builder
public static TemplateSetBuildItem.Builder builder()
-
-