Package io.quarkus.deployment.builditem
Class ArchiveRootBuildItem
java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.SimpleBuildItem
io.quarkus.deployment.builditem.ArchiveRootBuildItem
public final class ArchiveRootBuildItem
extends io.quarkus.builder.item.SimpleBuildItem
Represents a build item for an archive root, typically used in Quarkus build steps to
reference application classes directories or archives (like JARs) for indexing and processing.
This class contains the paths of directories or archives to be used as archive roots, as well as paths that should be excluded from indexing.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for constructingArchiveRootBuildIteminstances. -
Constructor Summary
ConstructorsConstructorDescriptionArchiveRootBuildItem(Path appClassesDir) Constructs anArchiveRootBuildItemwith a single application classes directory.ArchiveRootBuildItem(Path archiveLocation, Path archiveRoot) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic ArchiveRootBuildItem.Builderbuilder()Creates a newArchiveRootBuildItem.Builderinstance for building anArchiveRootBuildItem.Deprecated.in favor ofgetResolvedPaths()Deprecated.in favor ofgetRootDirectories()io.quarkus.bootstrap.model.PathsCollectiongetPaths()Deprecated.in favor ofgetResolvedPaths()io.quarkus.paths.PathCollectionCollection of paths that collectively constitute the application archive's content.io.quarkus.paths.PathCollectionCollection of paths representing the archive's root directories.io.quarkus.bootstrap.model.PathsCollectionDeprecated.in favor ofgetRootDirectories()boolean
-
Constructor Details
-
ArchiveRootBuildItem
Constructs anArchiveRootBuildItemwith a single application classes directory.- Parameters:
appClassesDir- the path to the application classes directory
-
ArchiveRootBuildItem
Deprecated.UseArchiveRootBuildItem.Builderinstead. Constructs anArchiveRootBuildItemwith a given archive location and root directory.- Parameters:
archiveLocation- the archive location (e.g., JAR file path)archiveRoot- the root directory of the archive
-
-
Method Details
-
builder
Creates a newArchiveRootBuildItem.Builderinstance for building anArchiveRootBuildItem.- Returns:
- a new
ArchiveRootBuildItem.Builderinstance
-
getArchiveLocation
Deprecated.in favor ofgetResolvedPaths()If this archive is a jar file it will return the path to the jar file on the file system, otherwise it will return the directory that this corresponds to. -
getArchiveRoot
Deprecated.in favor ofgetRootDirectories()Returns a path representing the archive root. Note that if this is a jar archive this is not the path to the jar, but rather a path to the root of the mounted.invalid reference
com.sun.nio.zipfs.ZipFileSystem- Returns:
- The archive root.
-
getRootDirs
Deprecated.in favor ofgetRootDirectories()Collection of paths representing the archive's root directories. If there is a JAR among the paths (returned bygetResolvedPaths()) this method will return the path to the root of the mountedinstead.invalid reference
java.nio.file.ZipFileSystem- Returns:
- Collection of paths representing the archive's root directories
-
getRootDirectories
public io.quarkus.paths.PathCollection getRootDirectories()Collection of paths representing the archive's root directories. If there is a JAR among the paths (returned bygetResolvedPaths()) this method will return the path to the root of the mountedinstead.invalid reference
java.nio.file.ZipFileSystem- Returns:
- Collection of paths representing the archive's root directories
-
getPaths
Deprecated.in favor ofgetResolvedPaths()Collection of paths that collectively constitute the application archive's content.- Returns:
- collection of paths that collectively constitute the application archive content
-
getResolvedPaths
public io.quarkus.paths.PathCollection getResolvedPaths()Collection of paths that collectively constitute the application archive's content.- Returns:
- collection of paths that collectively constitute the application archive content
-
isExcludedFromIndexing
-
ArchiveRootBuildItem.Builderinstead.