|
||||||||||
| 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 org.apache.maven.artifact.Artifact |
artifact
Project artifact. |
protected List |
attachedArtifacts
The artifacts to publish from the project build. |
protected boolean |
copyFiles
Un flag pour recopier les fichiers collectés. |
protected org.apache.maven.artifact.repository.ArtifactRepository |
deploymentRepository
The remote repository. |
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 List<File> |
files
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 boolean |
includeSiteAttached
Un flag pour collecter aussi les fichiers des sites attaches au projet. |
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository
The local repository. |
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 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)
|
protected boolean |
checkSkip()
Checks if the mojo execution should be skipped. |
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 void |
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 org.apache.maven.artifact.repository.ArtifactRepository localRepository
protected org.apache.maven.artifact.repository.ArtifactRepository deploymentRepository
protected org.apache.maven.artifact.Artifact artifact
protected String extraFiles
protected String includes
protected String excludes
protected String outputDirectory
protected String descriptionFile
protected boolean includeAttached
protected boolean includeSiteAttached
protected boolean copyFiles
protected boolean verbose
protected boolean skip
protected boolean dryRun
protected String encoding
protected List<File> files
| Constructor Detail |
|---|
public CollectFilesMojo()
| Method Detail |
|---|
protected void init()
throws Exception
AbstractPluginAbstractPlugin.doAction() method.
init in class AbstractPluginException - if anyprotected boolean checkSkip()
AbstractPlugin
checkSkip in class AbstractPluginfalse if the mojo should not be executed.
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 | |||||||||