You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bo...@apache.org on 2002/04/04 12:34:22 UTC
cvs commit: jakarta-ant/docs/manual/CoreTasks cvs.html
bodewig 02/04/04 02:34:22
Modified: docs/manual/CoreTasks cvs.html
Log:
Documentation for <cvs> changes
PR: 7433
Submitted by: stephan beal <st...@wanderinghorse.net>
Revision Changes Path
1.11 +37 -2 jakarta-ant/docs/manual/CoreTasks/cvs.html
Index: cvs.html
===================================================================
RCS file: /home/cvs/jakarta-ant/docs/manual/CoreTasks/cvs.html,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- cvs.html 4 Apr 2002 07:43:35 -0000 1.10
+++ cvs.html 4 Apr 2002 10:34:22 -0000 1.11
@@ -23,9 +23,15 @@
<tr>
<td valign="top">command</td>
<td valign="top">the CVS command to execute.</td>
- <td align="center" valign="top">No, default "checkout"</td>
+ <td align="center" valign="top">No, default "checkout".</td>
</tr>
<tr>
+ <td valign="top">commpression</td>
+ <td valign="top"><code>true</code>, <code>false</code>, or the number 1-9 (corresponding to possible values for CVS' <code>-z#</code> argument). Any other value is treated as false</td>
+ <td align="center" valign="top">No. Defaults to no compression. if passed <code>true</code>, level 3 compression is assumed.</td>
+ </tr>
+
+ <tr>
<td valign="top">cvsRoot</td>
<td valign="top">the CVSROOT variable.</td>
<td align="center" valign="top">No</td>
@@ -107,8 +113,37 @@
<pre> <cvs dest="${ws.dir}" command="update"/></pre>
<p>updates the package/module that has previously been checked out into
"${ws.dir}".</p>
+
<pre> <cvs command="-q diff -u -N" output="patch.txt"/></pre>
-<p>silently (-q) creates a file called patch.txt which contains a unified (-u) diff which includes new files added via "cvs add" (-N) and can be used as input to patch.</p>
+
+<p>silently (-q) creates a file called patch.txt which contains a unified (-u) diff which includes new files added via "cvs add" (-N) and can be used as input to patch.
+The equivalent, using <commandline> elements, is:
+</p>
+<pre>
+<cvs output="patch">
+ <commandline>
+ <argument value="-q"/>
+ <argument value="diff"/>
+ <argument value="-u"/>
+ <argument value="-N"/>
+ </commandline>
+</cvs>
+</pre>
+or:
+<pre>
+<cvs output="patch">
+ <commandline>
+ <argument line="-q diff -u -N"/>
+ </commandline>
+</cvs>
+</pre>
+<p>
+You may include as many <commandline> elements as you like.
+Each will inherit the <code>failonerror</code>, <code>compression</code>, and other "global" parameters
+from the <code><cvs></code> element.
+</p>
+
+
<pre> <cvs command="update -A -d"/></pre>
<p>Updates from the head of repository ignoring sticky bits (-A) and creating any new directories as necessary (-d).</p>
<p>Note: the text of the command is passed to cvs "as-is" so any cvs options should appear
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>