Class DirectoryArchiver

  • All Implemented Interfaces:
    Archiver, FinalizerEnabled, org.codehaus.plexus.logging.LogEnabled, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable

    public class DirectoryArchiver
    extends AbstractArchiver
    A plexus archiver implementation that stores the files to archive in a directory.
    • Constructor Detail

      • DirectoryArchiver

        public DirectoryArchiver()
    • Method Detail

      • resetArchiver

        public void resetArchiver()
                           throws java.io.IOException
        Throws:
        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:
        entry - 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
        java.io.IOException - If there is a problem copying the file
      • cleanUp

        protected void cleanUp()
                        throws java.io.IOException
        Overrides:
        cleanUp in class AbstractArchiver
        Throws:
        java.io.IOException
      • close

        protected void close()
                      throws java.io.IOException
        Specified by:
        close in class AbstractArchiver
        Throws:
        java.io.IOException