Class ArtifactResourceResolver

java.lang.Object
io.quarkus.deployment.util.ArtifactResourceResolver

public final class ArtifactResourceResolver extends Object
Utility class to extract a list of resource paths from a given artifact and path.
  • Method Details

    • of

      public static ArtifactResourceResolver of(Collection<io.quarkus.maven.dependency.ResolvedDependency> dependencies, io.quarkus.maven.dependency.ArtifactCoords artifactCoordinates)
      Creates a ArtifactResourceResolver for the given artifact
      Parameters:
      dependencies - the resolved dependencies of the build
      artifactCoordinates - 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 a ArtifactResourceResolver for the given artifact
      Parameters:
      dependencies - the resolved dependencies of the build
      artifactCoordinatesCollection - a coordinates Collection for the artifacts containing the resources
    • resourcePathList

      public Collection<Path> resourcePathList(io.quarkus.paths.PathFilter pathFilter)
      Extracts a Collection of resource paths with the given filter
      Parameters:
      pathFilter - the filter for the resources in glob syntax (see GlobUtil)
      Returns:
      a collection of the found resource paths
    • resourceList

      public List<String> resourceList(io.quarkus.paths.PathFilter pathFilter)
      Extracts a List of resource paths as strings with the given filter
      Parameters:
      pathFilter - the filter for the resources in glob syntax (see GlobUtil)
      Returns:
      a list of the found resource paths as strings