public abstract class AbstractSiteMojo extends AbstractMojo
Modifier and Type | Field and Description |
---|---|
protected ArchiverManager |
archiverManager
To look up Archiver/UnArchiver implementations
|
Constructor and Description |
---|
AbstractSiteMojo() |
Modifier and Type | Method and Description |
---|---|
void |
copyFile(File sourceFile,
File destFile)
Does the actual copy of the file or directory
|
protected void |
unpack(File file,
File location)
Unpacks the archive file
|
getLog, getPluginContext, setLog, setPluginContext
protected ArchiverManager archiverManager
public AbstractSiteMojo()
public void copyFile(File sourceFile, File destFile) throws MojoExecutionException
sourceFile
- represents the file to copy.destFile
- file name of destination file.MojoExecutionException
- with a message if an error occurs.protected void unpack(File file, File location) throws MojoExecutionException
file
- File to be unpacked.location
- Location where to put the unpacked files.MojoExecutionException
Copyright © 2006–2014 AndroMDA.org. All rights reserved.