public abstract class BaseArchiveMojo extends AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected ArchiverManager |
archiverManager
To look up Archiver/UnArchiver implementations
|
protected String |
finalName
The name of the emx file to generate.
|
protected File |
modelSourceDirectory
Single directory that contains the model
|
protected File |
outputDirectory
The directory for the generated emx.
|
protected org.apache.maven.project.MavenProject |
project
The maven project.
|
protected org.apache.maven.project.MavenProjectHelper |
projectHelper
The maven project's helper.
|
protected boolean |
replaceExtensions
Whether or not to do replacement of embedded model HREF reference extensions.
|
protected File |
workDirectory
Directory that resources are copied to during the build.
|
| Constructor and Description |
|---|
BaseArchiveMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
deleteFiles(String pPath,
String pExtension)
Deletes all files with given extension in the given directory
|
protected String |
escapePattern(String pattern)
Escapes the pattern so that the reserved regular expression
characters are used literally.
|
protected void |
replaceExtensions(String pReplacementExtensions,
File pFile)
Replace all extensions in the file
|
protected void |
setArtifactFile(File newFile)
Sets File for current Artifact
|
getLog, getPluginContext, setLog, setPluginContextprotected File modelSourceDirectory
protected File workDirectory
protected File outputDirectory
protected org.apache.maven.project.MavenProject project
protected ArchiverManager archiverManager
protected org.apache.maven.project.MavenProjectHelper projectHelper
protected boolean replaceExtensions
public BaseArchiveMojo()
protected void deleteFiles(String pPath, String pExtension)
pPath - path to directorypExtension - extension of filesprotected String escapePattern(String pattern)
pattern - the pattern to replace.protected void replaceExtensions(String pReplacementExtensions, File pFile) throws IOException
pReplacementExtensions - Extensions to replacepFile - File where all Extensions should be replacedIOException - Exception on IO-Errorprotected void setArtifactFile(File newFile)
newFile - File to set for current ArtifactCopyright © 2005–2014 AndroMDA.org. All rights reserved.