|
||||||||||
| 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.InitState, Plugin.Packaging |
| Field Summary | |
|---|---|
protected java.util.List |
attachedArtifacts
The artifacts to publish from the project build. |
protected boolean |
copyFiles
Un flag pour recopier les fichiers collectés. |
protected java.lang.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 java.lang.String |
encoding
Encoding a utiliser pour lire et ecrire les fichiers. |
protected java.lang.String |
excludes
File name pattern of selected files to publish. |
protected java.lang.String |
extraFiles
User extra files to collect. |
protected java.util.List<java.io.File> |
files
Files to collect |
protected boolean |
includeAttached
Un flag pour collecter aussi les fichiers attaches au projet. |
protected java.lang.String |
includes
File name pattern of selected files to publish. |
protected java.lang.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 interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
CollectFilesMojo()
|
|
| Method Summary | |
|---|---|
protected void |
addFile(java.io.File f,
java.lang.String msg,
java.util.List<java.io.File> files,
java.util.regex.Pattern includePattern,
java.util.regex.Pattern excludePattern)
|
protected boolean |
checkSkip()
Checks if the mojo execution should be skipped. |
void |
doAction()
Do plugin action. |
protected org.apache.maven.project.MavenProject |
getExecutionRootProject()
|
protected java.util.List<java.io.File> |
getFiles()
|
java.util.List<java.io.File> |
getFiles(java.io.File input)
Read a file containing on each line the path of a file. |
org.apache.maven.project.MavenProject |
getProject()
|
protected void |
init()
Method to initialize the mojo before doing any concrete actions. |
boolean |
isVerbose()
|
void |
setFiles(java.io.File output,
java.util.List<java.io.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 java.util.List attachedArtifacts
protected java.lang.String extraFiles
protected java.lang.String includes
protected java.lang.String excludes
protected java.lang.String outputDirectory
protected java.lang.String descriptionFile
protected boolean includeAttached
protected boolean copyFiles
protected boolean verbose
protected boolean skip
protected boolean dryRun
protected java.lang.String encoding
protected java.util.List<java.io.File> files
| Constructor Detail |
|---|
public CollectFilesMojo()
| Method Detail |
|---|
protected void init()
throws java.lang.Exception
AbstractPluginAbstractPlugin.doAction() method.
// * @return true if mojo is well initialize and something has
// * to be done in the AbstractPlugin.doAction() method, false
// * otherwise.
init in class AbstractPluginjava.lang.Exception - if anyprotected boolean checkSkip()
AbstractPlugin
checkSkip in class AbstractPluginfalse if the mojo should not be executed.
public void doAction()
throws java.lang.Exception
AbstractPluginAbstractPlugin.execute() invoke this method only and only if :
AbstractPlugin.checkPackaging() returns true.AbstractPlugin.init() returns true.
doAction in class AbstractPluginjava.lang.Exception - if any
public java.util.List<java.io.File> getFiles(java.io.File input)
throws java.io.IOException
input - the file containing the list of files
java.io.IOException - if any pb while reading file
public void setFiles(java.io.File output,
java.util.List<java.io.File> files)
throws java.io.IOException
output - the file when to writefiles - the files to store
java.io.IOException - if any pb when writing fileprotected java.util.List<java.io.File> getFiles()
protected org.apache.maven.project.MavenProject getExecutionRootProject()
protected void addFile(java.io.File f,
java.lang.String msg,
java.util.List<java.io.File> files,
java.util.regex.Pattern includePattern,
java.util.regex.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 | |||||||||