Class ArtifactUpload

    • Constructor Detail

      • ArtifactUpload

        public ArtifactUpload()
        Creates a new uninitialized upload.
      • ArtifactUpload

        public ArtifactUpload​(org.eclipse.aether.artifact.Artifact artifact,
                              java.io.File file)
        Creates a new upload with the specified properties.
        Parameters:
        artifact - The artifact to upload, may be null.
        file - The local file to upload the artifact from, may be null.
      • ArtifactUpload

        public ArtifactUpload​(org.eclipse.aether.artifact.Artifact artifact,
                              java.io.File file,
                              org.eclipse.aether.transform.FileTransformer fileTransformer)

        Creates a new upload with the specified properties.

        IMPORTANT When using a fileTransformer, the content of the file is stored in memory to ensure that file content and checksums stay in sync!

        Parameters:
        artifact - The artifact to upload, may be null.
        file - The local file to upload the artifact from, may be null.
        fileTransformer - The file transformer, may be null.
    • Method Detail

      • setFile

        public ArtifactUpload setFile​(java.io.File file)
        Description copied from class: ArtifactTransfer
        Sets the local file the artifact is downloaded to or uploaded from.
        Overrides:
        setFile in class ArtifactTransfer
        Parameters:
        file - The local file, may be null.
        Returns:
        This transfer for chaining, never null.
      • setException

        public ArtifactUpload setException​(org.eclipse.aether.transfer.ArtifactTransferException exception)
        Description copied from class: ArtifactTransfer
        Sets the exception that occurred during the transfer.
        Overrides:
        setException in class ArtifactTransfer
        Parameters:
        exception - The exception, may be null to denote a successful transfer.
        Returns:
        This transfer for chaining, never null.
      • getFileTransformer

        public org.eclipse.aether.transform.FileTransformer getFileTransformer()
      • toString

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