Examples of ArtifactUpload


Examples of org.sonatype.aether.spi.connector.ArtifactUpload

    private void uploadArtifact( Artifact artifact, String content )
        throws IOException, ArtifactTransferException
    {
        File file = TestFileUtils.createTempFile( content );

        ArtifactUpload transfer = new ArtifactUpload( artifact, file );
        FileRepositoryWorker worker = new FileRepositoryWorker( transfer, repository, session );
        worker.setFileProcessor( TestFileProcessor.INSTANCE );
        worker.run();

        TestFileUtils.delete( file );
        if ( transfer.getException() != null )
        {
            throw transfer.getException();
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.