public class FileSystemArtifactStore extends BaseArtifactStore
FileSystem.for the oposite.,
Serialized Form| Constructor and Description |
|---|
FileSystemArtifactStore(FileSystem backing)
Creates a new artifact store hosted at the supplied root directory.
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
get(Artifact artifact) |
org.apache.maven.archetype.catalog.ArchetypeCatalog |
getArchetypeCatalog() |
long |
getArchetypeCatalogLastModified() |
Set<String> |
getArtifactIds(String groupId) |
Set<Artifact> |
getArtifacts(String groupId,
String artifactId,
String version) |
Set<String> |
getGroupIds(String parentGroupId) |
long |
getLastModified(Artifact artifact) |
org.apache.maven.artifact.repository.metadata.Metadata |
getMetadata(String path) |
long |
getMetadataLastModified(String path) |
long |
getSize(Artifact artifact) |
Set<String> |
getVersions(String groupId,
String artifactId) |
void |
set(Artifact artifact,
InputStream content) |
setArchetypeCatalog, setMetadatapublic FileSystemArtifactStore(FileSystem backing)
backing - the backing file system.public long getLastModified(Artifact artifact) throws IOException, ArtifactNotFoundException
IOExceptionArtifactNotFoundExceptionpublic long getSize(Artifact artifact) throws IOException, ArtifactNotFoundException
IOExceptionArtifactNotFoundExceptionpublic InputStream get(Artifact artifact) throws IOException, ArtifactNotFoundException
IOExceptionArtifactNotFoundExceptionpublic void set(Artifact artifact, InputStream content) throws IOException
set in interface ArtifactStoreset in class BaseArtifactStoreIOExceptionpublic org.apache.maven.artifact.repository.metadata.Metadata getMetadata(String path) throws IOException, MetadataNotFoundException
IOExceptionMetadataNotFoundExceptionpublic long getMetadataLastModified(String path) throws IOException, MetadataNotFoundException
IOExceptionMetadataNotFoundExceptionpublic org.apache.maven.archetype.catalog.ArchetypeCatalog getArchetypeCatalog()
throws IOException,
ArchetypeCatalogNotFoundException
getArchetypeCatalog in interface ArtifactStoregetArchetypeCatalog in class BaseArtifactStoreIOExceptionArchetypeCatalogNotFoundExceptionpublic long getArchetypeCatalogLastModified()
throws IOException,
ArchetypeCatalogNotFoundException
getArchetypeCatalogLastModified in interface ArtifactStoregetArchetypeCatalogLastModified in class BaseArtifactStoreIOExceptionArchetypeCatalogNotFoundExceptionCopyright © 2009–2022 MojoHaus. All rights reserved.