org.codehaus.plexus.archiver.dir

Class DirectoryArchiver

public class DirectoryArchiver extends AbstractArchiver

A plexus archiver implementation that stores the files to archive in a directory.
Method Summary
protected voidcleanUp()
protected voidclose()
protected voidcopyFile(ArchiveEntry entry, String vPath)
Copies the specified file to the specified path, creating any ancestor directory structure as necessary.
voidexecute()
protected StringgetArchiveType()
voidresetArchiver()

Method Detail

cleanUp

protected void cleanUp()

close

protected void close()

copyFile

protected void copyFile(ArchiveEntry entry, String vPath)
Copies the specified file to the specified path, creating any ancestor directory structure as necessary.

Parameters: file The file to copy (IOException will be thrown if this does not exist) vPath The fully qualified path to copy the file to.

Throws: ArchiverException If there is a problem creating the directory structure IOException If there is a problem copying the file

execute

public void execute()

getArchiveType

protected String getArchiveType()

resetArchiver

public void resetArchiver()
Copyright © 2001-2009 Codehaus. All Rights Reserved.