You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

patch.html 2.5 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>Patch Task</title>
  5. </head>
  6. <body>
  7. <h2><a name="patch">Patch</a></h2>
  8. <h3>Description</h3>
  9. <p>Applies a diff file to originals.</p>
  10. <h3>Parameters</h3>
  11. <table border="1" cellpadding="2" cellspacing="0">
  12. <tr>
  13. <td valign="top"><b>Attribute</b></td>
  14. <td valign="top"><b>Description</b></td>
  15. <td align="center" valign="top"><b>Required</b></td>
  16. </tr>
  17. <tr>
  18. <td valign="top">patchfile</td>
  19. <td valign="top">the file that includes the diff output</td>
  20. <td align="center" valign="top">Yes</td>
  21. </tr>
  22. <tr>
  23. <td valign="top">originalfile</td>
  24. <td valign="top">the file to patch</td>
  25. <td align="center" valign="top">No, tries to guess it from the diff
  26. file</td>
  27. </tr>
  28. <tr>
  29. <td valign="top">backups</td>
  30. <td valign="top">Keep backups of the unpatched files</td>
  31. <td align="center" valign="top">No</td>
  32. </tr>
  33. <tr>
  34. <td valign="top">quiet</td>
  35. <td valign="top">Work silently unless an error occurs</td>
  36. <td align="center" valign="top">No</td>
  37. </tr>
  38. <tr>
  39. <td valign="top">reverse</td>
  40. <td valign="top">Assume patch was created with old and new files
  41. swapped.</td>
  42. <td align="center" valign="top">No</td>
  43. </tr>
  44. <tr>
  45. <td valign="top">ignorewhitespace</td>
  46. <td valign="top">Ignore whitespace differences.</td>
  47. <td align="center" valign="top">No</td>
  48. </tr>
  49. <tr>
  50. <td valign="top">strip</td>
  51. <td valign="top">Strip the smallest prefix containing <i>num</i> leading
  52. slashes from filenames.</td>
  53. <td align="center" valign="top">No</td>
  54. </tr>
  55. <tr>
  56. <td valign="top">dir</td>
  57. <td valign="top">The directory in which to run the patch command.</td>
  58. <td align="center" valign="top">No, default is the project's basedir.</td>
  59. </tr>
  60. </table>
  61. <h3>Examples</h3>
  62. <pre> &lt;patch patchfile=&quot;module.1.0-1.1.patch&quot;/&gt;</pre>
  63. <p>applies the diff included in <i>module.1.0-1.1.patch</i> to the
  64. files in base directory guessing the filename(s) from the diff output.</p>
  65. <pre> &lt;patch patchfile=&quot;module.1.0-1.1.patch&quot; strip=&quot;1&quot;/&gt;</pre>
  66. <p>like above but one leading directory part will be removed. i.e. if
  67. the diff output looked like</p>
  68. <pre>
  69. --- a/mod1.0/A Mon Jun 5 17:28:41 2000
  70. +++ a/mod1.1/A Mon Jun 5 17:28:49 2000
  71. </pre>
  72. the leading <i>a/</i> will be stripped.
  73. <hr>
  74. <p align="center">Copyright &copy; 2001-2002 Apache Software Foundation. All rights
  75. Reserved.</p>
  76. </body>
  77. </html>