Search in sources :

Example 1 with LazyFileOutputStream

use of org.apache.maven.wagon.LazyFileOutputStream in project wagon-git by synergian.

the class GitWagon method fillOutputData.

/**
	 * {@inheritDoc}
	 */
public void fillOutputData(OutputData outputData) throws TransferFailedException {
    log.debug("Invoked fillOutputData()");
    Resource resource = outputData.getResource();
    File file = new File(git.workDir, resource.getName());
    createParentDirectories(file);
    OutputStream outputStream = new BufferedOutputStream(new LazyFileOutputStream(file));
    outputData.setOutputStream(outputStream);
}
Also used : LazyFileOutputStream(org.apache.maven.wagon.LazyFileOutputStream) OutputStream(java.io.OutputStream) BufferedOutputStream(java.io.BufferedOutputStream) LazyFileOutputStream(org.apache.maven.wagon.LazyFileOutputStream) Resource(org.apache.maven.wagon.resource.Resource) File(java.io.File) BufferedOutputStream(java.io.BufferedOutputStream)

Aggregations

BufferedOutputStream (java.io.BufferedOutputStream)1 File (java.io.File)1 OutputStream (java.io.OutputStream)1 LazyFileOutputStream (org.apache.maven.wagon.LazyFileOutputStream)1 Resource (org.apache.maven.wagon.resource.Resource)1