org.apache.maven.plugin.patch
Class ApplyMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.patch.ApplyMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class ApplyMojo
extends org.apache.maven.plugin.AbstractMojo

Apply one or more patches to project sources.

Is defined by the goal name:
apply
Is bound to the specified phase of the standard build lifecycle:
process-sources

Field Summary
static List DEFAULT_IGNORED_PATCH_PATTERNS
           
static List DEFAULT_IGNORED_PATCHES
           
static List PATCH_FAILURE_WATCH_PHRASES
           
protected  List patches
          The 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
ApplyMojo()
           
 
Method Summary
 void execute()
          Apply the patches.
 
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
 

Field Detail

PATCH_FAILURE_WATCH_PHRASES

public static final List PATCH_FAILURE_WATCH_PHRASES

DEFAULT_IGNORED_PATCHES

public static final List DEFAULT_IGNORED_PATCHES

DEFAULT_IGNORED_PATCH_PATTERNS

public static final List DEFAULT_IGNORED_PATCH_PATTERNS

patches

protected List 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 parameter patchDirectory. This parameter is mutually exclusive with the patchfile parameter.

Is defined by:
Constructor Detail

ApplyMojo

public ApplyMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Apply 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


Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.