com.cloudbees.diff
Class ContextualPatch

java.lang.Object
  extended by com.cloudbees.diff.ContextualPatch

public final class ContextualPatch
extends Object

Applies contextual patches to files. The patch file can contain patches for multiple files.

Author:
Maros Sandor

Nested Class Summary
static class ContextualPatch.PatchReport
           
static class ContextualPatch.PatchStatus
           
 
Field Summary
static String MAGIC
           
 
Method Summary
static ContextualPatch create(File patchFile, File context)
           
 List<ContextualPatch.PatchReport> patch(boolean dryRun)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAGIC

public static final String MAGIC
See Also:
Constant Field Values
Method Detail

create

public static ContextualPatch create(File patchFile,
                                     File context)

patch

public List<ContextualPatch.PatchReport> patch(boolean dryRun)
                                        throws PatchException,
                                               IOException
Parameters:
dryRun - true if the method should not make any modifications to files, false otherwise
Returns:
Throws:
PatchException
IOException


Copyright © 2011-2012. All Rights Reserved.