Class FileRepositoryArtifactProvider

    • Constructor Detail

      • FileRepositoryArtifactProvider

        public FileRepositoryArtifactProvider​(java.util.List<org.eclipse.equinox.p2.repository.artifact.IFileArtifactRepository> repositories,
                                              ArtifactTransferPolicy transferPolicy)
      • FileRepositoryArtifactProvider

        public FileRepositoryArtifactProvider​(java.util.List<java.net.URI> artifactRepositories,
                                              ArtifactTransferPolicy transferPolicy,
                                              org.eclipse.equinox.p2.core.IProvisioningAgent agent)
    • Method Detail

      • getArtifactFile

        public java.io.File getArtifactFile​(org.eclipse.equinox.p2.metadata.IArtifactKey key)
        Description copied from interface: IArtifactFileProvider
        Returns the file system location of the given artifact.
        Specified by:
        getArtifactFile in interface IArtifactFileProvider
        Parameters:
        key - An artifact key
        Returns:
        The location of the specified artifact, or null the given artifact does not exist.
      • getArtifactFile

        public java.io.File getArtifactFile​(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
        Description copied from interface: IRawArtifactFileProvider
        Returns the file system location of the given artifact in the given format.
        Specified by:
        getArtifactFile in interface IRawArtifactFileProvider
        Parameters:
        descriptor - The key and format of an artifact
        Returns:
        The location of the specified raw artifact, ornull the that artifact does not exist in the given format.