|
CvsDescriptionHandles packages/modules retrieved from a CVS repository. When doing automated builds, the get task should be preferred over the checkout command, because of speed. Parameters
Examples<cvs cvsRoot=":pserver:anoncvs@cvs.apache.org:/home/cvspublic" package="jakarta-ant" dest="${ws.dir}" /> checks out the package/module "jakarta-ant" from the CVS repository pointed to by the cvsRoot attribute, and stores the files in "${ws.dir}". <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. 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 <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 before the command, and any command options should appear after the command as in the diff example above. See the cvs manual for details, specifically the Guide to CVS commands Copyright © 2000-2002 Apache Software Foundation. All rights Reserved. |