Package io.quarkus.deployment.builditem
Class ArchiveRootBuildItem.Builder
java.lang.Object
io.quarkus.deployment.builditem.ArchiveRootBuildItem.Builder
- Enclosing class:
ArchiveRootBuildItem
Builder for constructing
ArchiveRootBuildItem instances.-
Method Summary
Modifier and TypeMethodDescriptionaddArchiveRoot(Path root) Adds a single archive root path to the builder.addArchiveRoots(io.quarkus.paths.PathCollection paths) Adds multiple archive root paths to the builder.build(QuarkusBuildCloseablesBuildItem buildCloseables) Builds theArchiveRootBuildItemusing the configured properties.setArchiveLocation(Path archiveLocation) Deprecated.setExcludedFromIndexing(Collection<Path> excludedFromIndexing) Sets the collection of paths to exclude from indexing.
-
Method Details
-
addArchiveRoot
Adds a single archive root path to the builder.- Parameters:
root- the archive root path to add- Returns:
- this builder instance
-
addArchiveRoots
Adds multiple archive root paths to the builder.- Parameters:
paths- aPathCollectionof archive root paths to add- Returns:
- this builder instance
-
setExcludedFromIndexing
Sets the collection of paths to exclude from indexing.- Parameters:
excludedFromIndexing- a collection of paths to be excluded- Returns:
- this builder instance
-
setArchiveLocation
Deprecated.UseaddArchiveRoot(Path)instead to add archive roots. This method clears previous archive roots before setting the new one.- Parameters:
archiveLocation- the archive location to set- Returns:
- this builder instance
-
build
public ArchiveRootBuildItem build(QuarkusBuildCloseablesBuildItem buildCloseables) throws IOException Builds theArchiveRootBuildItemusing the configured properties.- Parameters:
buildCloseables- aQuarkusBuildCloseablesBuildItemto manage opened resources (e.g., zip file systems)- Returns:
- a new
ArchiveRootBuildIteminstance - Throws:
IOException- if an I/O error occurs when accessing the archive roots
-
addArchiveRoot(Path)instead to add archive roots.