Class DefaultLocalPathComposer

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getPathForArtifact​(org.eclipse.aether.artifact.Artifact artifact, boolean local)
      Gets the relative path for a locally installed (local=true) or remotely cached (local=false) artifact.
      java.lang.String getPathForMetadata​(org.eclipse.aether.metadata.Metadata metadata, java.lang.String repositoryKey)
      Gets the relative path for locally installed (repositoryKey=local) or remotely cached metadata.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getPathForArtifact

        public java.lang.String getPathForArtifact​(org.eclipse.aether.artifact.Artifact artifact,
                                                   boolean local)
        Description copied from interface: LocalPathComposer
        Gets the relative path for a locally installed (local=true) or remotely cached (local=false) artifact.
        Specified by:
        getPathForArtifact in interface LocalPathComposer
        Parameters:
        artifact - The artifact for which to determine the path, must not be null.
        local - true if artifact is locally installed or false if artifact is remotely cached.
        Returns:
        A relative path representing artifact path.
      • getPathForMetadata

        public java.lang.String getPathForMetadata​(org.eclipse.aether.metadata.Metadata metadata,
                                                   java.lang.String repositoryKey)
        Description copied from interface: LocalPathComposer
        Gets the relative path for locally installed (repositoryKey=local) or remotely cached metadata. The repositoryKey should be used at caller discretion, it merely denotes the origin of the metadata, while value "local" usually means local origin, but again, this is not a must or enforced, just how things happened so far.
        Specified by:
        getPathForMetadata in interface LocalPathComposer
        Parameters:
        metadata - The metadata for which to determine the path, must not be null.
        repositoryKey - The repository key, never null.
        Returns:
        A relative path representing metadata path.