The PatchTask
uses the patch
program to apply diff file to originals.
NB: the patch
program must be in the
system path!
Table 105. Attributes
Name | Type | Description | Default | Required |
---|---|---|---|---|
patchfile |
String |
File that includes the diff output | n/a | Yes |
originalfile |
String |
File to patch. If not specified Task tries to guess it from the diff file | none | No |
destfile |
String |
File to send the output to instead of patching the file in place | none | No |
backups |
Boolean |
Keep backups of the unpatched files | false |
No |
quiet |
Boolean |
Work silently unless an error occurs | false |
No |
reverse |
Boolean |
Assume patch was created with old and new files swapped | false |
No |
ignorewhitespace |
Boolean |
Ignore whitespace differences | false |
No |
strip |
Integer |
Strip the smallest prefix containing specified number of leading slashes from filenames | none | No |
dir |
String |
The directory in which to run the patch command | none | No |
haltonfailure |
Boolean |
Stop the build process if the patching process encounters an error. | false |
No |