org.codehaus.plexus.archiver.dir
Class DirectoryArchiver

java.lang.Object
  extended byorg.codehaus.plexus.logging.AbstractLogEnabled
      extended byorg.codehaus.plexus.archiver.AbstractArchiver
          extended byorg.codehaus.plexus.archiver.dir.DirectoryArchiver
All Implemented Interfaces:
Archiver, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable, org.codehaus.plexus.logging.LogEnabled

public class DirectoryArchiver
extends AbstractArchiver

A plexus archiver implementation that stores the files to archive in a directory.


Field Summary
 
Fields inherited from class org.codehaus.plexus.archiver.AbstractArchiver
DEFAULT_DIR_MODE, DEFAULT_FILE_MODE
 
Fields inherited from interface org.codehaus.plexus.archiver.Archiver
ROLE
 
Constructor Summary
DirectoryArchiver()
           
 
Method Summary
protected  void copyFile(ArchiveEntry entry, java.lang.String vPath)
          Copies the specified file to the specified path, creating any ancestor directory structure as necessary.
 void createArchive()
           
 void resetArchiver()
           
 
Methods inherited from class org.codehaus.plexus.archiver.AbstractArchiver
addArchivedFileSet, addArchivedFileSet, addArchivedFileSet, addArchivedFileSet, addDirectory, addDirectory, addDirectory, addDirectory, addFile, addFile, checkForced, contextualize, getDefaultDirectoryMode, getDefaultFileMode, getDestFile, getDirs, getFiles, getIncludeEmptyDirs, getLogger, isForced, isSupportingForced, isUptodate, setDefaultDirectoryMode, setDefaultFileMode, setDestFile, setForced, setIncludeEmptyDirs
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryArchiver

public DirectoryArchiver()
Method Detail

resetArchiver

public void resetArchiver()

createArchive

public void createArchive()
                   throws ArchiverException,
                          java.io.IOException
Throws:
ArchiverException
java.io.IOException

copyFile

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

Parameters:
vPath - The fully qualified path to copy the file to.
Throws:
ArchiverException - If there is a problem creating the directory structure
java.io.IOException - If there is a problem copying the file


Copyright © 2001-2006 Codehaus. All Rights Reserved.