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
voidchmod(File file, int mode)
protected voidcopyFile(ArchiveEntry entry, String vPath)
Copies the specified file to the specified path, creating any ancestor directory structure as necessary.
voidcreateArchive()
voidresetArchiver()

Method Detail

chmod

private void chmod(File file, int mode)

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

createArchive

public void createArchive()

resetArchiver

public void resetArchiver()