Hi,

When you say "Ant <CVS> wants to find the
cvs dir in the user's path", which cvs dir
are you referring to?

I have a CVS repository with a module called
'Bar'.
On my machine I have that 'Bar' module
checked out.
I followed your advice and added the full
path to 'Bar' to my PATH (I'm on a Linux box).
That didn't help.  Maybe you were referring
to some other CVS dir?

Thanks,
Otis



---- On Tue, 29 Oct 2002, Tolles, James
([EMAIL PROTECTED]) wrote:

> We had alotta trouble getting CVS task to
work on win2k, but it was only path problems. 
> 
> We we're using wincvs at the time and it
worked fine. 
> First we got cvs to work from the command
line, then from within ant as <exec ..> then
tried the ant
> <CVS task.. - it took awhile but it was
only path problems.
>   Ant <CVS> wants to find the cvs dir in
the user's path, so we had to add it the the
user's path in
> the windows registry. Then, ant <CVS>
wanted to find the .cvspass file in the
windows user dir under
> "Documents and Settings..." for that user.
Wincvs was using .cvspass in /username/.cvspass.
> 
> Now we've been using it without trouble
now for a couple of months.
> 
> Don't know if this helps.
> 
> Thanks,
>   James
> 
> 
> -----Original Message-----
> From: otisg [mailto:otisg@;ureach.com]
> Sent: Tuesday, October 29, 2002 8:06 AM
> To: Detlef Brendle
> Subject: Re: RE: Tagging CVS from Ant - errors
> 
> 
> Hello,
> 
> Thanks, that was a kick in the right
direction.
> However, it appears that 'cvs' invoked from
> Ant (version 1.5) and 'cvs' invoked from the
> command line behave differently.
> 
> This works from the command line:
> 
> prompt> cvs -n tag -F -R my-tag Foo
> 
> This does not work from Ant:
> 
>     <cvs
>
cvsRoot=":pserver:[EMAIL PROTECTED]:/home/cvs/repository"
>          command="tag -F -R my-tag Foo"
>          failonerror="true"
>          noexec="true">
>     </cvs>
> 
> 
> Note:
> -n option prevents cvs from actually making
> changes in repository
> -r option apparently doesn't work for
> tagging (cvs tag -r my-tag Foo).  If I try
> that command from the command line I get:
> 
> cvs [server aborted]: no such tag my-tag
> 
> Any help would be appreciated.  I'd like to
> do this tagging from Ant rather than the
> shell script...
> 
> Thanks,
> 
> Otis
> 
> 
> ---- On Tue, 29 Oct 2002, Detlef Brendle
> ([EMAIL PROTECTED]) wrote:
> 
> > command isnt correct. Depending on the cvs
> version you are using it should
> > be:
> > 
> >  cvs tag [-bcdFflR] [-r rev|-D date] tag
> [files...]
> >   -b      Make the tag a "branch" tag,
> allowing concurrent development.
> >   -c      Check that working files are
> unmodified.
> >   -d      Delete the given tag.
> >   -F      Move tag if it already exists.
> >   -f      Force a head revision match if
> tag/date not found.
> >   -l      Local directory only, not
recursive.
> >   -R      Process directories recursively.
> >   -r rev  Existing revision/tag.
> >   -D      Existing date.
> > 
> > >>>>> probably your commands misses the
> '-r' flag for the tag name.
> > 
> > detlef
> > 
> > -----Original Message-----
> > From: otisg [mailto:otisg@;ureach.com]
> > Sent: Tuesday, October 29, 2002 12:18 AM
> > To: [EMAIL PROTECTED]
> > Subject: Tagging CVS from Ant - errors
> > 
> > 
> > Hello,
> > 
> > I'm trying to tag the source under CVS using
> > Ant.
> > 
> > This is how I am trying to do it (IP is
> > changed):
> > 
> >     <cvs
> >
>
cvsRoot=":pserver:[EMAIL PROTECTED]:/home/cvs/repository"
> >          package="mclass"
> >          command="tag -F my-tag Foo"
> >          noexec="true">
> >     </cvs>
> > 
> > I am getting this error:
> > 
> >       [cvs] Using cvs passfile:
> > /home/otis/.cvspass
> >       [cvs] cvs server: nothing known
> about Foo
> >       [cvs] cvs server: nothing known about
> > mclass
> >       [cvs] cvs [server aborted]: correct
> > the above errors first!
> > 
> > 
> > I looked through the mailing list archives,
> > but didn't find any answers that worked
> for me.
> > I tried using rtag instead of tag, too,
> > without success.
> > 
> > Thanks,
> > Otis
> > 
> > 
> >
>
________________________________________________
> > Get your own "800" number
> > Voicemail, fax, email, and a lot more
> > http://www.ureach.com/reg/tag
> > 
> > --
> > To unsubscribe, e-mail:  
>
<mailto:ant-user-unsubscribe@;jakarta.apache.org>
> > For additional commands, e-mail:
> <mailto:ant-user-help@;jakarta.apache.org>
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:  
>
<mailto:ant-user-unsubscribe@;jakarta.apache.org>
> > For additional commands, e-mail:
> <mailto:ant-user-help@;jakarta.apache.org>
> > 
> > 
> > 
> 
> 
>
________________________________________________
> Get your own "800" number
> Voicemail, fax, email, and a lot more
> http://www.ureach.com/reg/tag
> 
> --
> To unsubscribe, e-mail:  
<mailto:ant-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
<mailto:ant-user-help@;jakarta.apache.org>
> 
> 
> 
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
3.2//EN">
> <HTML>
> <HEAD>
> <META HTTP-EQUIV="Content-Type"
CONTENT="text/html; charset=iso-8859-1">
> <META NAME="Generator" CONTENT="MS
Exchange Server version 5.5.2650.12">
> <TITLE>RE: RE: Tagging CVS from Ant -
errors</TITLE>
> </HEAD>
> <BODY>
> 
> <P><FONT SIZE=2>We had alotta trouble
getting CVS task to work on win2k, but it
was only path
> problems. </FONT>
> </P>
> 
> <P><FONT SIZE=2>We we're using wincvs at
the time and it worked fine. </FONT>
> <BR><FONT SIZE=2>First we got cvs to work
from the command line, then from within ant
as <exec
> ..> then tried the ant <CVS task.. - it
took awhile but it was only path
problems.</FONT></P>
> 
> <P><FONT SIZE=2>  Ant <CVS> wants to find
the cvs dir in the user's path, so we had to add
> it the the user's path in the windows
registry. Then, ant <CVS> wanted to find the
.cvspass
> file in the windows user dir under
"Documents and Settings..." for that user.
Wincvs was
> using .cvspass in
/username/.cvspass.</FONT></P>
> 
> <P><FONT SIZE=2>Now we've been using it
without trouble now for a couple of
months.</FONT>
> </P>
> 
> <P><FONT SIZE=2>Don't know if this
helps.</FONT>
> </P>
> 
> <P><FONT SIZE=2>Thanks,</FONT>
> <BR><FONT SIZE=2>  James</FONT>
> </P>
> <BR>
> 
> <P><FONT SIZE=2>-----Original
Message-----</FONT>
> <BR><FONT SIZE=2>From: otisg [<A
HREF="mailto:otisg@;ureach.com">mailto:otisg@;ureach.com</A>]</FONT>
> <BR><FONT SIZE=2>Sent: Tuesday, October
29, 2002 8:06 AM</FONT>
> <BR><FONT SIZE=2>To: Detlef Brendle</FONT>
> <BR><FONT SIZE=2>Subject: Re: RE: Tagging
CVS from Ant - errors</FONT>
> </P>
> <BR>
> 
> <P><FONT SIZE=2>Hello,</FONT>
> </P>
> 
> <P><FONT SIZE=2>Thanks, that was a kick in
the right direction.</FONT>
> <BR><FONT SIZE=2>However, it appears that
'cvs' invoked from</FONT>
> <BR><FONT SIZE=2>Ant (version 1.5) and
'cvs' invoked from the</FONT>
> <BR><FONT SIZE=2>command line behave
differently.</FONT>
> </P>
> 
> <P><FONT SIZE=2>This works from the
command line:</FONT>
> </P>
> 
> <P><FONT SIZE=2>prompt> cvs -n tag -F -R
my-tag Foo</FONT>
> </P>
> 
> <P><FONT SIZE=2>This does not work from
Ant:</FONT>
> </P>
> 
> <P><FONT SIZE=2>    <cvs</FONT>
> <BR><FONT
SIZE=2>cvsRoot=":pserver:[EMAIL PROTECTED]:/home/cvs/repository"</FONT>
> <BR><FONT SIZE=2>         command="tag -F
-R my-tag
> Foo"</FONT>
> <BR><FONT SIZE=2>        
failonerror="true"</FONT>
> <BR><FONT SIZE=2>        
noexec="true"></FONT>
> <BR><FONT SIZE=2>    </cvs></FONT>
> </P>
> <BR>
> 
> <P><FONT SIZE=2>Note:</FONT>
> <BR><FONT SIZE=2>-n option prevents cvs
from actually making</FONT>
> <BR><FONT SIZE=2>changes in repository</FONT>
> <BR><FONT SIZE=2>-r option apparently
doesn't work for</FONT>
> <BR><FONT SIZE=2>tagging (cvs tag -r
my-tag Foo).  If I try</FONT>
> <BR><FONT SIZE=2>that command from the
command line I get:</FONT>
> </P>
> 
> <P><FONT SIZE=2>cvs [server aborted]: no
such tag my-tag</FONT>
> </P>
> 
> <P><FONT SIZE=2>Any help would be
appreciated.  I'd like to</FONT>
> <BR><FONT SIZE=2>do this tagging from Ant
rather than the</FONT>
> <BR><FONT SIZE=2>shell script...</FONT>
> </P>
> 
> <P><FONT SIZE=2>Thanks,</FONT>
> </P>
> 
> <P><FONT SIZE=2>Otis</FONT>
> </P>
> <BR>
> 
> <P><FONT SIZE=2>---- On Tue, 29 Oct 2002,
Detlef Brendle</FONT>
> <BR><FONT
SIZE=2>([EMAIL PROTECTED]) wrote:</FONT>
> </P>
> 
> <P><FONT SIZE=2>> command isnt correct.
Depending on the cvs</FONT>
> <BR><FONT SIZE=2>version you are using it
should</FONT>
> <BR><FONT SIZE=2>> be:</FONT>
> <BR><FONT SIZE=2>> </FONT>
> <BR><FONT SIZE=2>>  cvs tag [-bcdFflR] [-r
rev|-D date] tag</FONT>
> <BR><FONT SIZE=2>[files...]</FONT>
> <BR><FONT SIZE=2>>   -b      Make the tag
a "branch"
> tag,</FONT>
> <BR><FONT SIZE=2>allowing concurrent
development.</FONT>
> <BR><FONT SIZE=2>>   -c      Check that
working files
> are</FONT>
> <BR><FONT SIZE=2>unmodified.</FONT>
> <BR><FONT SIZE=2>>   -d      Delete the
given tag.</FONT>
> <BR><FONT SIZE=2>>   -F      Move tag if
it already
> exists.</FONT>
> <BR><FONT SIZE=2>>   -f      Force a head
revision match
> if</FONT>
> <BR><FONT SIZE=2>tag/date not found.</FONT>
> <BR><FONT SIZE=2>>   -l      Local
directory only, not
> recursive.</FONT>
> <BR><FONT SIZE=2>>   -R      Process
directories
> recursively.</FONT>
> <BR><FONT SIZE=2>>   -r rev  Existing
revision/tag.</FONT>
> <BR><FONT SIZE=2>>   -D      Existing
date.</FONT>
> <BR><FONT SIZE=2>> </FONT>
> <BR><FONT SIZE=2>> >>>>> probably your
commands misses the</FONT>
> <BR><FONT SIZE=2>'-r' flag for the tag
name.</FONT>
> <BR><FONT SIZE=2>> </FONT>
> <BR><FONT SIZE=2>> detlef</FONT>
> <BR><FONT SIZE=2>> </FONT>
> <BR><FONT SIZE=2>> -----Original
Message-----</FONT>
> <BR><FONT SIZE=2>> From: otisg [<A
>
HREF="mailto:otisg@;ureach.com">mailto:otisg@;ureach.com</A>]</FONT>
> <BR><FONT SIZE=2>> Sent: Tuesday, October
29, 2002 12:18 AM</FONT>
> <BR><FONT SIZE=2>> To:
[EMAIL PROTECTED]</FONT>
> <BR><FONT SIZE=2>> Subject: Tagging CVS
from Ant - errors</FONT>
> <BR><FONT SIZE=2>> </FONT>
> <BR><FONT SIZE=2>> </FONT>
> <BR><FONT SIZE=2>> Hello,</FONT>
> <BR><FONT SIZE=2>> </FONT>
> <BR><FONT SIZE=2>> I'm trying to tag the
source under CVS using</FONT>
> <BR><FONT SIZE=2>> Ant.</FONT>
> <BR><FONT SIZE=2>> </FONT>
> <BR><FONT SIZE=2>> This is how I am trying
to do it (IP is</FONT>
> <BR><FONT SIZE=2>> changed):</FONT>
> <BR><FONT SIZE=2>> </FONT>
> <BR><FONT SIZE=2>>     <cvs</FONT>
> <BR><FONT SIZE=2>></FONT>
> <BR><FONT
SIZE=2>cvsRoot=":pserver:[EMAIL PROTECTED]:/home/cvs/repository"</FONT>
> <BR><FONT SIZE=2>>         
> package="mclass"</FONT>
> <BR><FONT SIZE=2>>          command="tag -F
> my-tag Foo"</FONT>
> <BR><FONT SIZE=2>>         
> noexec="true"></FONT>
> <BR><FONT SIZE=2>>     </cvs></FONT>
> <BR><FONT SIZE=2>> </FONT>
> <BR><FONT SIZE=2>> I am getting this
error:</FONT>
> <BR><FONT SIZE=2>> </FONT>
> <BR><FONT SIZE=2>>       [cvs] Using cvs
passfile:</FONT>
> <BR><FONT SIZE=2>> /home/otis/.cvspass</FONT>
> <BR><FONT SIZE=2>>       [cvs] cvs server:
nothing known</FONT>
> <BR><FONT SIZE=2>about Foo</FONT>
> <BR><FONT SIZE=2>>       [cvs] cvs server:
nothing known
> about</FONT>
> <BR><FONT SIZE=2>> mclass</FONT>
> <BR><FONT SIZE=2>>       [cvs] cvs [server
aborted]: correct</FONT>
> <BR><FONT SIZE=2>> the above errors
first!</FONT>
> <BR><FONT SIZE=2>> </FONT>
> <BR><FONT SIZE=2>> </FONT>
> <BR><FONT SIZE=2>> I looked through the
mailing list archives,</FONT>
> <BR><FONT SIZE=2>> but didn't find any
answers that worked</FONT>
> <BR><FONT SIZE=2>for me.</FONT>
> <BR><FONT SIZE=2>> I tried using rtag
instead of tag, too,</FONT>
> <BR><FONT SIZE=2>> without success.</FONT>
> <BR><FONT SIZE=2>> </FONT>
> <BR><FONT SIZE=2>> Thanks,</FONT>
> <BR><FONT SIZE=2>> Otis</FONT>
> <BR><FONT SIZE=2>> </FONT>
> <BR><FONT SIZE=2>> </FONT>
> <BR><FONT SIZE=2>></FONT>
> <BR><FONT
SIZE=2>________________________________________________</FONT>
> <BR><FONT SIZE=2>> Get your own "800"
number</FONT>
> <BR><FONT SIZE=2>> Voicemail, fax, email,
and a lot more</FONT>
> <BR><FONT SIZE=2>> <A
HREF="http://www.ureach.com/reg/tag";
>
TARGET="_blank">http://www.ureach.com/reg/tag</A></FONT>
> <BR><FONT SIZE=2>> </FONT>
> <BR><FONT SIZE=2>> --</FONT>
> <BR><FONT SIZE=2>> To unsubscribe,
e-mail:  </FONT>
> <BR><FONT SIZE=2><<A
>
HREF="mailto:ant-user-unsubscribe@;jakarta.apache.org">mailto:ant-user-unsubscribe@;jakarta.apache.org</A>></FONT>
> <BR><FONT SIZE=2>> For additional
commands, e-mail:</FONT>
> <BR><FONT SIZE=2><<A
>
HREF="mailto:ant-user-help@;jakarta.apache.org">mailto:ant-user-help@;jakarta.apache.org</A>></FONT>
> <BR><FONT SIZE=2>> </FONT>
> <BR><FONT SIZE=2>> </FONT>
> <BR><FONT SIZE=2>> </FONT>
> <BR><FONT SIZE=2>> --</FONT>
> <BR><FONT SIZE=2>> To unsubscribe,
e-mail:  </FONT>
> <BR><FONT SIZE=2><<A
>
HREF="mailto:ant-user-unsubscribe@;jakarta.apache.org">mailto:ant-user-unsubscribe@;jakarta.apache.org</A>></FONT>
> <BR><FONT SIZE=2>> For additional
commands, e-mail:</FONT>
> <BR><FONT SIZE=2><<A
>
HREF="mailto:ant-user-help@;jakarta.apache.org">mailto:ant-user-help@;jakarta.apache.org</A>></FONT>
> <BR><FONT SIZE=2>> </FONT>
> <BR><FONT SIZE=2>> </FONT>
> <BR><FONT SIZE=2>> </FONT>
> </P>
> <BR>
> 
> <P><FONT
SIZE=2>________________________________________________</FONT>
> <BR><FONT SIZE=2>Get your own "800"
number</FONT>
> <BR><FONT SIZE=2>Voicemail, fax, email,
and a lot more</FONT>
> <BR><FONT SIZE=2><A
HREF="http://www.ureach.com/reg/tag";
>
TARGET="_blank">http://www.ureach.com/reg/tag</A></FONT>
> </P>
> 
> <P><FONT SIZE=2>--</FONT>
> <BR><FONT SIZE=2>To unsubscribe, e-mail:   <<A
>
HREF="mailto:ant-user-unsubscribe@;jakarta.apache.org">mailto:ant-user-unsubscribe@;jakarta.apache.org</A>></FONT>
> <BR><FONT SIZE=2>For additional commands,
e-mail: <<A
>
HREF="mailto:ant-user-help@;jakarta.apache.org">mailto:ant-user-help@;jakarta.apache.org</A>></FONT>
> </P>
> 
> </BODY>
> </HTML>


________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org>

Reply via email to