ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nico Seessle" <>
Subject Re: problem with cvs checkout dest="."
Date Mon, 10 Sep 2001 21:18:34 GMT
----- Original Message -----
From: "Daniel Martin" <>
To: <>
Sent: Monday, September 10, 2001 7:49 PM
Subject: Re: problem with cvs checkout dest="."

> Nicolas Girard <> writes:
> > Hi,
> > I'd like to have cvs work just like it does at the command line:
> >     prompt$ cvs checkout -d . my_module
> >     cvs checkout: Updating .
> >     U my_module/src
> >     U my_module/src/redame.txt
> > this creates src in .
> >
> > But with the supposed equivalent in ant:
> >     --snip-- basedir="." --snip--
> >     <cvs cvsRoot="${cvs.root}" dest="${basedir}" package="my_module"/>
> This ant snippet is equivalent to:
> cd ${basedir} && cvs checkout -d ${cvs.root}

No. It's equivalent to:

cd ${basedir} && cvs -d ${cvs.root} checkout my_module

> To do what you say you want, use:
> <cvs cvsRoot="${basedir}" package="my_module"/>


> The -d option to cvs redefines the cvs root, and overrides the
> $CVSROOT environment variable.

C:\>cvs --help-options
CVS global options (specified before the command name) are:
    -d CVS_root  Overrides $CVSROOT as the root of the CVS tree.
(Specify the --help option for a list of other help options)

C:\>cvs --help co
  cvs checkout [-ANPRcflnps] [-r rev | -D date] [-d dir]
    [-j rev1] [-j rev2] [-k kopt] modules...
        -d dir  Check out into dir instead of module name.
(Specify the --help global option for a list of other help options)

=> There are different -d options available with cvs, so you could do a

cvs -d $MYCVSROOT co -d somedir somemodule.

>From the docs I would guess what Nicolas should use is

    <cvs cvsRoot="${cvs.root}" dest="${basedir}" package="my_module"
command="co -d ${basedir}/>


View raw message