| Type | Name and description |
|---|---|
static int |
DEFAULT_CONTEXT_SIZE |
int |
contextSize |
org.slf4j.Logger |
log |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
apply(java.io.File patch, java.io.File content, java.io.File destination)Applies the parameter patch(es) to the parameter file(s). |
|
java.util.List<java.lang.String> |
apply(java.io.File contentFileOrDir, java.io.File modifiedFileOrDir, java.lang.String diffExtension, java.nio.charset.Charset charset, java.io.File destinationDir)Creates one or more patches from one or more file pairs. |
|
java.util.List<java.lang.String> |
applyDirectory(java.io.File contentDir, java.io.File modifiedDir, java.lang.String diffExtension, java.nio.charset.Charset charset, java.io.File destinationDir)Creates a directory of patches from directories of content and modifications. |
|
java.util.List<java.lang.String> |
applyFile(java.io.File modifiedFile, java.io.File contentFile, java.nio.charset.Charset charset, java.io.File destinationFile, java.util.List<java.lang.String> errors)Generates a patch file from a content file and a modified file. |
|
java.io.File |
applyOrThrow(java.io.File modifiedFile, java.io.File contentFile, java.io.File destinationFile)Creates a patch file from a content file and a modified file. |
|
java.io.File |
applyOrThrow(java.io.File modifiedFile, java.io.File contentFile, java.nio.charset.Charset charset, java.io.File destinationFile)Creates a patch file from a content file and a modified file. |
|
difflib.Patch<java.lang.String> |
applyOrThrow(java.util.List<java.lang.String> modifiedLines, java.util.List<java.lang.String> contentLines) |
|
java.util.List<java.lang.String> |
applyOrThrow(java.io.File contentFile, java.io.File modifiedFile, java.util.List<java.lang.String> contentLines, difflib.Patch<java.lang.String> patch, int contextSize) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Applies the parameter patch(es) to the parameter file(s).
patch - The patch file to applycontent - The content to apply the patch todestination - The destination to write toCreates one or more patches from one or more file pairs.
contentFileOrDir - The original contentmodifiedFileOrDir - The modified contentdiffExtension - The diff file extensioncharset - The character set in use, defaults to UTF-8destinatinDir - The directory to write toCreates a directory of patches from directories of content and modifications.
contentDir - A directory containing original contentmodifiedDir - A directory containing modificationsdiffExtension - The file extension that identifies the patch filescharset - The character set in use, defaults to UTF-8destinationDir - The directory to write toGenerates a patch file from a content file and a modified file.
modifiedFile - A modified filecontentFile - A content filecharset - The character set in use, defaults to UTF-8destinationFile - The file to write the patch toerrors - An error list to add to if patching failsCreates a patch file from a content file and a modified file.
modifiedFile - A modified filecontentFile - A content filedestinationFile - The file to write the patch toCreates a patch file from a content file and a modified file.
modifiedFile - A modified filecontentFile - A content filecharset - The character set in use, defaults to UTF-8destinationFile - The output file to write toGroovy Documentation