org.apache.maven.plugin.assembly
Class AbstractUnpackingMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.assembly.AbstractUnpackingMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AssemblyMojo, UnpackMojo

public abstract class AbstractUnpackingMojo
extends org.apache.maven.plugin.AbstractMojo

Base routines for assembly and unpack goals.

Version:
$Id: AbstractUnpackingMojo.java 306505 2005-10-06 03:01:50Z brett $

Field Summary
protected  org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager
          To look up Archiver/UnArchiver implementations
protected  java.util.Set dependencies
          Project dependencies.
protected static java.lang.String[] EMPTY_STRING_ARRAY
           
protected  java.lang.String finalName
          The filename of the assembled distribution file.
protected  java.io.File outputDirectory
          The output directory of the assembled distribution file.
protected  java.io.File workDirectory
          Directory to unpack JARs into if needed
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractUnpackingMojo()
           
 
Method Summary
protected  void unpack(java.io.File file, java.io.File location)
          Unpacks the archive file.
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.maven.plugin.Mojo
execute
 

Field Detail

EMPTY_STRING_ARRAY

protected static final java.lang.String[] EMPTY_STRING_ARRAY

outputDirectory

protected java.io.File outputDirectory
The output directory of the assembled distribution file.


finalName

protected java.lang.String finalName
The filename of the assembled distribution file.


dependencies

protected java.util.Set dependencies
Project dependencies.


workDirectory

protected java.io.File workDirectory
Directory to unpack JARs into if needed


archiverManager

protected org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager
To look up Archiver/UnArchiver implementations

Constructor Detail

AbstractUnpackingMojo

public AbstractUnpackingMojo()
Method Detail

unpack

protected void unpack(java.io.File file,
                      java.io.File location)
               throws org.apache.maven.plugin.MojoExecutionException,
                      org.codehaus.plexus.archiver.manager.NoSuchArchiverException
Unpacks the archive file.

Parameters:
file - File to be unpacked.
location - Location where to put the unpacked files.
Throws:
org.apache.maven.plugin.MojoExecutionException
org.codehaus.plexus.archiver.manager.NoSuchArchiverException


Copyright {inceptionYear}-2006 Apache Software Foundation. All Rights Reserved.