Class ContextualPatch
java.lang.Object
com.gtnewhorizons.retrofuturagradle.util.patching.ContextualPatch
STOLEN FROM diff4j v1.1
Applies contextual patches to files. The patch file can contain patches for multiple files.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interfacestatic final classstatic enum -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ContextualPatchstatic ContextualPatchcreate(String patchString, ContextualPatch.IContextProvider context) patch(boolean dryRun) setAccessC14N(boolean canonicalize) setMaxFuzz(int maxFuzz) setWhitespaceC14N(boolean canonicalize)
-
Field Details
-
MAGIC
- See Also:
-
-
Method Details
-
create
-
create
-
setMaxFuzz
-
setWhitespaceC14N
-
setAccessC14N
-
patch
public List<ContextualPatch.PatchReport> patch(boolean dryRun) throws com.cloudbees.diff.PatchException, IOException - Parameters:
dryRun- true if the method should not make any modifications to files, false otherwise- Returns:
- List of patch reports. Never null, may be empty.
- Throws:
com.cloudbees.diff.PatchException- for a malformed patch fileIOException- because it reads the patch file
-