mirror of
https://github.com/apache/ant.git
synced 2025-05-16 13:05:14 +00:00
(1) Make sure there is a Copyright notice on all visible files. (2) Make sure all years in which the file has been modified are listed. (3) Make sure the format is consistent, i.e. separate consecutive years with a dash, not a comma. When Stephane changed starteam.html it has been 2001 in France but 2002 in Australia - does that mean we add 2002 to the Copyright line or not? ;-) git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270652 13f79535-47bb-0310-9956-ffa450edef68
78 lines
2.3 KiB
HTML
78 lines
2.3 KiB
HTML
<html>
|
|
|
|
<head>
|
|
<meta http-equiv="Content-Language" content="en-us">
|
|
<title>Apache Ant User Manual</title>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h2><a name="patch">Patch</a></h2>
|
|
<h3>Description</h3>
|
|
<p>Applies a diff file to originals.</p>
|
|
<h3>Parameters</h3>
|
|
<table border="1" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td valign="top"><b>Attribute</b></td>
|
|
<td valign="top"><b>Description</b></td>
|
|
<td align="center" valign="top"><b>Required</b></td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">patchfile</td>
|
|
<td valign="top">the file that includes the diff output</td>
|
|
<td align="center" valign="top">Yes</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">originalfile</td>
|
|
<td valign="top">the file to patch</td>
|
|
<td align="center" valign="top">No, tries to guess it from the diff
|
|
file</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">backups</td>
|
|
<td valign="top">Keep backups of the unpatched files</td>
|
|
<td align="center" valign="top">No</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">quiet</td>
|
|
<td valign="top">Work silently unless an error occurs</td>
|
|
<td align="center" valign="top">No</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">reverse</td>
|
|
<td valign="top">Assume patch was created with old and new files
|
|
swapped.</td>
|
|
<td align="center" valign="top">No</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">ignorewhitespace</td>
|
|
<td valign="top">Ignore whitespace differences.</td>
|
|
<td align="center" valign="top">No</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">strip</td>
|
|
<td valign="top">Strip the smallest prefix containing <i>num</i> leading
|
|
slashes from filenames.</td>
|
|
<td align="center" valign="top">No</td>
|
|
</tr>
|
|
</table>
|
|
<h3>Examples</h3>
|
|
<pre> <patch patchfile="module.1.0-1.1.patch"/></pre>
|
|
<p>applies the diff included in <i>module.1.0-1.1.patch</i> to the
|
|
files in base directory guessing the filename(s) from the diff output.</p>
|
|
<pre> <patch patchfile="module.1.0-1.1.patch" strip="1"/></pre>
|
|
<p>like above but one leading directory part will be removed. i.e. if
|
|
the diff output looked like</p>
|
|
<pre>
|
|
--- a/mod1.0/A Mon Jun 5 17:28:41 2000
|
|
+++ a/mod1.1/A Mon Jun 5 17:28:49 2000
|
|
</pre>
|
|
the leading <i>a/</i> will be stripped.
|
|
<hr>
|
|
<p align="center">Copyright © 2001 Apache Software Foundation. All rights
|
|
Reserved.</p>
|
|
|
|
</body>
|
|
</html>
|
|
|