Class ProjectArtifactMetadata

    • Field Detail

      • file

        private final java.io.File file
    • Constructor Detail

      • ProjectArtifactMetadata

        public ProjectArtifactMetadata​(Artifact artifact)
      • ProjectArtifactMetadata

        public ProjectArtifactMetadata​(Artifact artifact,
                                       java.io.File file)
    • Method Detail

      • getFile

        public java.io.File getFile()
      • getRemoteFilename

        public java.lang.String getRemoteFilename()
        Description copied from interface: ArtifactMetadata
        Get the filename of this metadata on the remote repository.
        Returns:
        the filename
      • getLocalFilename

        public java.lang.String getLocalFilename​(ArtifactRepository repository)
        Description copied from interface: ArtifactMetadata
        Get the filename of this metadata on the local repository.
        Parameters:
        repository - the remote repository it came from
        Returns:
        the filename
      • getFilename

        private java.lang.String getFilename()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • storedInArtifactVersionDirectory

        public boolean storedInArtifactVersionDirectory()
        Description copied from interface: ArtifactMetadata
        Whether this metadata should be stored alongside the artifact.
      • getBaseVersion

        public java.lang.String getBaseVersion()
      • getKey

        public java.lang.Object getKey()
      • merge

        public void merge​(ArtifactMetadata metadata)
        Description copied from interface: ArtifactMetadata
        Merge a new metadata set into this piece of metadata.
        Parameters:
        metadata - the new metadata TODO this should only be needed on the repository metadata