From f9d745ee48a7365cb35933ebad256ac301b79d0a Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Thu, 4 Apr 2002 10:34:22 +0000 Subject: [PATCH] Documentation for changes PR: 7433 Submitted by: stephan beal git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272202 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/CoreTasks/cvs.html | 39 ++++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/docs/manual/CoreTasks/cvs.html b/docs/manual/CoreTasks/cvs.html index 24a5568b1..d3dd8bf24 100644 --- a/docs/manual/CoreTasks/cvs.html +++ b/docs/manual/CoreTasks/cvs.html @@ -23,8 +23,14 @@ preferred over the checkout command, because of speed.

command the CVS command to execute. - No, default "checkout" + No, default "checkout". + + commpression + true, false, or the number 1-9 (corresponding to possible values for CVS' -z# argument). Any other value is treated as false + No. Defaults to no compression. if passed true, level 3 compression is assumed. + + cvsRoot the CVSROOT variable. @@ -107,8 +113,37 @@ repository pointed to by the cvsRoot attribute, and stores the files in "${
  <cvs dest="${ws.dir}" command="update"/>

updates the package/module that has previously been checked out into "${ws.dir}".

+
  <cvs command="-q diff -u -N" output="patch.txt"/>
-

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.

+ +

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: +

+
+<cvs output="patch">
+    <commandline>
+        <argument value="-q"/>
+        <argument value="diff"/>
+        <argument value="-u"/>
+        <argument value="-N"/>
+    </commandline>
+</cvs>
+
+or: +
+<cvs output="patch">
+    <commandline>
+        <argument line="-q diff -u -N"/>
+    </commandline>
+</cvs>
+
+

+You may include as many <commandline> elements as you like. +Each will inherit the failonerror, compression, and other "global" parameters +from the <cvs> element. +

+ +
  <cvs command="update -A -d"/>

Updates from the head of repository ignoring sticky bits (-A) and creating any new directories as necessary (-d).

Note: the text of the command is passed to cvs "as-is" so any cvs options should appear