Hi All,
I am hoping to get some help from the group.
I am trying to checkout files from CVS using the CVS task and am
ending up with error:
[cvs] cvs checkout: Empty password used - try 'cvs login' with a real
password
Here's my build file with CVS access information
<target name="cvs-login"
description="Login with CVS">
<echo message="cvs root ${cvs.root}"/>
<echo message="build home ${build.home}"/>
<cvspass
cvsRoot="${cvs.root}"
password="mypwd"
passfile="${build.home}\.cvspass"
/>
</target>
<target name="cvs-checkout-jars"
depends="cvs-login"
unless="no.checkout.jars"
description="Checkout jars libaries from CVS">
<echo message="cvs tag jars ${cvs.tag.jars}"/>
<echo message="cvs root ${cvs.root}"/>
<cvs command="-t checkout -r ${cvs.tag.jars}"
cvsRoot="${cvs.root}"
passfile="{build.home}\.cvspass"
package="${cvs.name.jars}"
dest="${cvs.checkout}"
/>
--------------
The result I get is
cvs-login:
[echo] cvs root :pserver:CVSAdmin@CVSServer:c:/cvsrepo/rep0201
[echo] build home C:/BuildTest
cvs-checkout-jars:
[echo] cvs tag jars HEAD
[echo] cvs root :pserver:CVSAdmin@CVSServer:c:/cvsrepo/rep0201
[cvs] Using cvs passfile: C:\BuildTest\.cvspass
[cvs] -> main loop with
CVSROOT=:pserver:CVSAdmin@CVSServer:c:/cvsrepo/rep0201
[cvs] cvs checkout: Empty password used - try 'cvs login' with a
real password
-------
You may notice that I tried to turn ON tracing in CVS checkout command
to see if it would give any detail.
------
Why am I getting this error?
--
I am able to access CVS using CVS commandline commands just fine.
--
Here's some background information.
We have been running the same build program against rep01 repository.
I have created a new repository rep0201 using CVS Control Panel pgm.
I am attempting to switch the ant build process to new repository
rep0201
I have deleted all old .cvspass files in the build folders
I have confirmed that a new .cvspass file is being created using
cvs-login ant task above
---
Why cannot I login? Any clues?
Thanks in advance for your help.
nobody important - 15 Jun 2004 09:45 GMT
I don't know the solution to your <cvspass>-tag problem, though if you have
a .cvspass file for the specific repository you should be able to do
something like this:
<property name="rootdir" value="-- insert checkout root dir here --" />
<property name="source" value="${rootdir}/source" />
<property name="cvscommand" value="checkout" />
<property name="cvsroot" value=":pserver:user@host:/cvspath" />
<target name="checkout" depends="clean">
<cvs dest="${source}" command="${cvscommand}" cvsroot="${cvsroot}"
package="-- insert package here --" />
</target>
/nobody important.
> Hi All,
>
[quoted text clipped - 68 lines]
>
> Thanks in advance for your help.