Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / June 2004

Tip: Looking for answers? Try searching our database.

Empty password used - Error!

Thread view: 
Sally Lon - 15 Jun 2004 04:03 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.