| Modifier and Type | Field and Description |
|---|---|
| private Commandline | |
| private File | |
| private boolean | failOnError
Halt on error return value from patch invocation. |
| private boolean | |
| private File | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | setDestfile(File
the file to send the output to file)The name of a file to send the output to, instead of patching the file(s) in place; optional. |
| public void | |
| public void | setFailOnError(boolean
true if it should halt, otherwise
false. The default is false.If |
| public void | setIgnorewhitespace(boolean
if true ignore whitespace differences ignore)flag to ignore whitespace differences; default=false |
| public void | setOriginalfile(File
the file to patch file)The file to patch; optional if it can be inferred from the diff file |
| public void | setPatchfile(File
the file containing the diff output file)The file containing the diff output; required. |
| public void | setQuiet(boolean
if true suppress set the -s option on the patch command q)Work silently unless an error occurs; optional, default=false |
| public void | setReverse(boolean
if true set the -R option on the patch command r)Assume patch was created with old and new files swapped; optional, default=false |
| public void | setStrip(int
number of lines to strip num)Strip the smallest prefix containing num leading slashes from filenames. |
| cmd | back to summary |
|---|---|
| private Commandline cmd | |
| directory | back to summary |
|---|---|
| private File directory | |
| failOnError | back to summary |
|---|---|
| private boolean failOnError Halt on error return value from patch invocation. | |
| havePatchfile | back to summary |
|---|---|
| private boolean havePatchfile | |
| originalFile | back to summary |
|---|---|
| private File originalFile | |
| PATCH | back to summary |
|---|---|
| private static final String PATCH | |
| Patch | back to summary |
|---|---|
| public Patch() | |
| execute | back to summary |
|---|---|
| public void execute() throws BuildException Overrides org. execute patch
| |
| setBackups | back to summary |
|---|---|
| public void setBackups(boolean backups) flag to create backups; optional, default=false
| |
| setDestfile | back to summary |
|---|---|
| public void setDestfile(File file) The name of a file to send the output to, instead of patching the file(s) in place; optional.
| |
| setDir | back to summary |
|---|---|
| public void setDir(File directory) The directory to run the patch command in, defaults to the project's base directory.
| |
| setFailOnError | back to summary |
|---|---|
| public void setFailOnError(boolean value) If
| |
| setIgnorewhitespace | back to summary |
|---|---|
| public void setIgnorewhitespace(boolean ignore) flag to ignore whitespace differences; default=false
| |
| setOriginalfile | back to summary |
|---|---|
| public void setOriginalfile(File file) The file to patch; optional if it can be inferred from the diff file
| |
| setPatchfile | back to summary |
|---|---|
| public void setPatchfile(File file) The file containing the diff output; required.
| |
| setQuiet | back to summary |
|---|---|
| public void setQuiet(boolean q) Work silently unless an error occurs; optional, default=false
| |
| setReverse | back to summary |
|---|---|
| public void setReverse(boolean r) Assume patch was created with old and new files swapped; optional, default=false
| |
| setStrip | back to summary |
|---|---|
| public void setStrip(int num) throws BuildException Strip the smallest prefix containing num leading slashes from filenames. patch's -p option.
| |