Class ArtifactUpload

    • Constructor Detail

      • ArtifactUpload

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

        @Deprecated
        public ArtifactUpload​(org.eclipse.aether.artifact.Artifact artifact,
                              java.io.File file)
        Deprecated.
        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.nio.file.Path path)
        Creates a new upload with the specified properties.
        Parameters:
        artifact - The artifact to upload, may be null.
        path - The local file to upload the artifact from, may be null.
        Since:
        2.0.0
    • Method Detail

      • setFile

        @Deprecated
        public ArtifactUpload setFile​(java.io.File file)
        Deprecated.
        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.
      • setPath

        public ArtifactUpload setPath​(java.nio.file.Path path)
        Description copied from class: ArtifactTransfer
        Sets the local file the artifact is downloaded to or uploaded from.
        Overrides:
        setPath in class ArtifactTransfer
        Parameters:
        path - 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.
      • toString

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