Class CopyMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.coderplus.plugins.CopyMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
@Mojo(name="copy",
defaultPhase=GENERATE_SOURCES,
threadSafe=true)
public class CopyMojo
extends org.apache.maven.plugin.AbstractMojo
Copy files during build
- Since:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.sonatype.plexus.build.incremental.BuildContextprivate FileThe target file to which the file should be copied(this shouldn't be a directory but a file which does or does not exist)Collection of FileSets to work on (FileSet contains sourceFile and destinationFile).(package private) booleanIgnore File Not Found errors during incremental build(package private) booleanOverwrite filesprivate org.apache.maven.project.MavenProjectprivate FileThe file which has to be copiedFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
sourceFile
-
destinationFile
The target file to which the file should be copied(this shouldn't be a directory but a file which does or does not exist)- Since:
- 1.0
-
fileSets
-
overWrite
@Parameter(property="copy.overWrite", defaultValue="true") boolean overWriteOverwrite files- Since:
- 1.0
-
ignoreFileNotFoundOnIncremental
@Parameter(property="copy.ignoreFileNotFoundOnIncremental", defaultValue="true") boolean ignoreFileNotFoundOnIncrementalIgnore File Not Found errors during incremental build- Since:
- 1.0
-
project
@Component private org.apache.maven.project.MavenProject project- Since:
- 1.0
-
buildContext
@Component private org.sonatype.plexus.build.incremental.BuildContext buildContext
-
-
Constructor Details
-
CopyMojo
public CopyMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
copy
-