Package org.apache.maven.plugin.patch
Class ApplyMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.patch.ApplyMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="apply",
defaultPhase=PROCESS_SOURCES)
public class ApplyMojo
extends org.apache.maven.plugin.AbstractMojo
Apply one or more patches to project sources.
-
Field Summary
Modifier and TypeFieldDescriptionThe list of patch file names, supplying the order in which patches should be applied.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
PATCH_FAILURE_WATCH_PHRASES
-
DEFAULT_IGNORED_PATCHES
-
DEFAULT_IGNORED_PATCH_PATTERNS
-
patches
The list of patch file names, supplying the order in which patches should be applied. The path names in this list must be relative to the base directory specified by the parameterpatchDirectory
. This parameter is mutually exclusive with thepatchfile
parameter.
-
-
Constructor Details
-
ApplyMojo
public ApplyMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionApply the patches. Give preference to patchFile over patchSourceDir/patches, and preference to originalFile over workDir.- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-