Package io.quarkus.deployment.util
Class ArtifactResourceResolver
java.lang.Object
io.quarkus.deployment.util.ArtifactResourceResolver
Utility class to extract a list of resource paths from a given artifact and path.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ArtifactResourceResolverof(Collection<io.quarkus.maven.dependency.ResolvedDependency> dependencies, io.quarkus.maven.dependency.ArtifactCoords artifactCoordinates) Creates aArtifactResourceResolverfor the given artifactstatic ArtifactResourceResolverof(Collection<io.quarkus.maven.dependency.ResolvedDependency> dependencies, Collection<io.quarkus.maven.dependency.ArtifactCoords> artifactCoordinatesCollection) Creates aArtifactResourceResolverfor the given artifactresourceList(io.quarkus.paths.PathFilter pathFilter) Extracts aListof resource paths as strings with the given filterresourcePathList(io.quarkus.paths.PathFilter pathFilter) Extracts aCollectionof resource paths with the given filter
-
Method Details
-
of
public static ArtifactResourceResolver of(Collection<io.quarkus.maven.dependency.ResolvedDependency> dependencies, io.quarkus.maven.dependency.ArtifactCoords artifactCoordinates) Creates aArtifactResourceResolverfor the given artifact- Parameters:
dependencies- the resolved dependencies of the buildartifactCoordinates- the coordinates of the artifact containing the resources
-
of
public static ArtifactResourceResolver of(Collection<io.quarkus.maven.dependency.ResolvedDependency> dependencies, Collection<io.quarkus.maven.dependency.ArtifactCoords> artifactCoordinatesCollection) Creates aArtifactResourceResolverfor the given artifact- Parameters:
dependencies- the resolved dependencies of the buildartifactCoordinatesCollection- a coordinatesCollectionfor the artifacts containing the resources
-
resourcePathList
Extracts aCollectionof resource paths with the given filter- Parameters:
pathFilter- the filter for the resources in glob syntax (seeGlobUtil)- Returns:
- a collection of the found resource paths
-
resourceList
Extracts aListof resource paths as strings with the given filter- Parameters:
pathFilter- the filter for the resources in glob syntax (seeGlobUtil)- Returns:
- a list of the found resource paths as strings
-