|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.nuiton.plugin.AbstractPlugin
org.nuiton.helper.plugin.CollectFilesMojo
public class CollectFilesMojo
Collect files some files from a project and copy them into a directory.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.nuiton.plugin.Plugin |
|---|
Plugin.Packaging |
| Field Summary | |
|---|---|
protected List |
attachedArtifacts
The artifacts to publish from the project build. |
protected boolean |
copyFiles
Un flag pour recopier les fichiers collectés. |
protected String |
descriptionFile
File with all files collected (one file by line in absolute path). |
protected boolean |
dryRun
Un flag pour activer le mode verbeux. |
protected String |
encoding
Encoding a utiliser pour lire et ecrire les fichiers. |
protected String |
excludes
File name pattern of selected files to publish. |
protected String |
extraFiles
User extra files to collect. |
protected boolean |
includeAttached
Un flag pour collecter aussi les fichiers attaches au projet. |
protected String |
includes
File name pattern of selected files to publish. |
protected String |
outputDirectory
Directory where to store collected files. |
protected org.apache.maven.project.MavenProject |
project
Dependance du projet. |
protected boolean |
skip
A flag to skip the goal. |
protected boolean |
verbose
Un flag pour activer le mode verbeux. |
| Fields inherited from class org.nuiton.plugin.AbstractPlugin |
|---|
skipAfterInitMessage |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
CollectFilesMojo()
|
|
| Method Summary | |
|---|---|
protected void |
addFile(File f,
String msg,
List<File> files,
Pattern includePattern,
Pattern excludePattern)
|
void |
doAction()
Do plugin action. |
protected org.apache.maven.project.MavenProject |
getExecutionRootProject()
|
protected List<File> |
getFiles()
|
List<File> |
getFiles(File input)
Read a file containing on each line the path of a file. |
org.apache.maven.project.MavenProject |
getProject()
|
protected boolean |
init()
Method to initialize the mojo before doing any concrete actions. |
boolean |
isVerbose()
|
void |
setFiles(File output,
List<File> files)
Save the list of files in the given output file. |
void |
setProject(org.apache.maven.project.MavenProject project)
|
void |
setVerbose(boolean verbose)
|
| 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 |
|---|
getLog, setLog |
| Field Detail |
|---|
protected org.apache.maven.project.MavenProject project
protected List attachedArtifacts
protected String extraFiles
protected String includes
protected String excludes
protected String outputDirectory
protected String descriptionFile
protected boolean includeAttached
protected boolean copyFiles
protected boolean verbose
protected boolean skip
protected boolean dryRun
protected String encoding
| Constructor Detail |
|---|
public CollectFilesMojo()
| Method Detail |
|---|
protected boolean init()
throws Exception
AbstractPluginAbstractPlugin.doAction() method.
init in class AbstractPlugintrue if mojo is well initialize and something has
to be done in the AbstractPlugin.doAction() method, false
otherwise.
Exception - if any
public void doAction()
throws Exception
AbstractPluginAbstractPlugin.execute() invoke this method only and only if :
AbstractPlugin.checkPackaging() returns true.AbstractPlugin.init() returns true.
doAction in class AbstractPluginException - if any
public List<File> getFiles(File input)
throws IOException
input - the file containing the list of files
IOException - if any pb while reading file
public void setFiles(File output,
List<File> files)
throws IOException
output - the file when to writefiles - the files to store
IOException - if any pb when writing fileprotected List<File> getFiles()
protected org.apache.maven.project.MavenProject getExecutionRootProject()
protected void addFile(File f,
String msg,
List<File> files,
Pattern includePattern,
Pattern excludePattern)
public org.apache.maven.project.MavenProject getProject()
public boolean isVerbose()
public void setProject(org.apache.maven.project.MavenProject project)
public void setVerbose(boolean verbose)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||