Interface Repository
-
public interface Repository
Repository of artifacts.Repository is a container holding repositories. Unlike in case of Maven repositories, artifacts in XMvn repository don't necessarily need to have unique paths -- one artifact can be stored in one of multiple locations. Methods or
Repository
interface support multiple artifact paths.- Author:
- Mikolaj Izdebski
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getNamespace()
java.nio.file.Path
getPrimaryArtifactPath(org.fedoraproject.xmvn.artifact.Artifact artifact, ArtifactContext context, java.lang.String pattern)
Obtain the preferred path to given artifact in this repository.java.util.Set<java.nio.file.Path>
getRootPaths()
-
-
-
Method Detail
-
getPrimaryArtifactPath
java.nio.file.Path getPrimaryArtifactPath(org.fedoraproject.xmvn.artifact.Artifact artifact, ArtifactContext context, java.lang.String pattern)
Obtain the preferred path to given artifact in this repository.Returned path is relative to the repository base.
- Parameters:
artifact
-context
- TODOpattern
- TODO- Returns:
- preferred artifact path
-
getRootPaths
java.util.Set<java.nio.file.Path> getRootPaths()
-
getNamespace
java.lang.String getNamespace()
-
-