|Modifier and Type||Method and Description|
Gets the relative path for a locally installed (local=true) or remotely cached (local=false) artifact.
Gets the relative path for locally installed (repositoryKey=local) or remotely cached metadata.
String getPathForArtifact(Artifact artifact, boolean local)
artifact- The artifact for which to determine the path, must not be
trueif artifact is locally installed or
falseif artifact is remotely cached.
String getPathForMetadata(Metadata metadata, String repositoryKey)
repositoryKeyshould 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.
metadata- The metadata for which to determine the path, must not be
repositoryKey- The repository key, never
Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.