Hi Ed, this is a bug in NAnt.  I will try to get a patch checked in for
it today.  I did some checking and to get around this to checkout your
head revision you could probably use the date attribute as a work
around.  So something like:

        <cvs-export cvsroot=":sspi:your-server:/usr/local/cvsroot"
                    destination="working"
                    module="Support"
                    usesharpcvslib="false"
                    date="${datetime::now()}"/>

Also, sorry when I replied to this before I must have hit Reply instead
of Reply To All :-) so I am have cc'd the list on this one.


Cheers,

Clayton

> -----Original Message-----
> From: Ed Howland [mailto:[EMAIL PROTECTED] 
> Sent: December 30, 2004 8:49 AM
> To: Clayton Harbour
> Subject: Re: [Nant-users] cvs-export and .cvspass problem
> 
> 
> Thanks Clayton,
> 
> It turns out this problem was the trailing slash in the cvsroot : 
> /usr/local/cvsroot/ => /usr/local/cvsroot
> 
> However, I now have the following problem. The cvs-export task says:
> 
>     <cvs-export
>         passfile="c:\.cvspass"
>         usesharpcvslib="false"
>         cvsfullpath="c:\Program Files\TortoiseCVS\cvs.exe"
>         cvsroot=":pserver:[EMAIL PROTECTED]:/usr/local/cvsroot"
>         revision="HEAD"
>         module="Module"
>       verbose="true"
>      />
> 
> This  results in :
> [cvs-export] cvs [export aborted]: no such tag   HEAD
> Note the extra space after tag.
> 
> The command line it executes is :
> [cvs-export] Starting 'c:\Program Files\TortoiseCVS\cvs.exe ( 
> -d:pserver:[EMAIL PROTECTED]:/usr/local/cvsroot export -R "-r HEAD" 
> Module)'
> 
> If I execute this exactly on the command line, I get the same 
> error. If 
> I remove the quotes from "-r HEAD" it works correctly. So is 
> this a bug 
> in NAnt or my version of TortoiseCVS?
> 
> Thanks
> Ed
> 
> 
> Clayton Harbour wrote:
> 
> >Hi Ed, I think Tortoise complains about an empty password before it 
> >goes to look in the .cvspass file.  Looking at the output below it 
> >almost looks like the remote repository can't be found:
> >     > [cvs-export] cvs [export aborted]: /usr/local/cvsroot/: no 
> >     > such repository
> >
> >And (I am speculating) not a password issue below.  Can you 
> execute the 
> >call to NAnt in verbose mode and get the commandline string that is 
> >being piped to cvs.  What I am trying to confirm is that if 
> you try to 
> >use that string from the commandline the cvs client will 
> still complain 
> >and that the issue is with the cvsroot (i.e. 
> >:pserver:[EMAIL PROTECTED]:/usr/local/cvsroot/ the 
> /usr/local/cvsroot 
> >is not a valid root on the server).
> >
> >
> >Cheers,
> >
> >Clayton
> >
> >  
> >
> >>-----Original Message-----
> >>From: Ed Howland [mailto:[EMAIL PROTECTED]
> >>Sent: December 28, 2004 11:57 AM
> >>To: [email protected]
> >>Subject: [Nant-users] cvs-export and .cvspass problem
> >>
> >>
> >>Hello,
> >>
> >>I'm a newbie to NAnt but a long time Ant user. I'm trying 
> to create a
> >>build file that will export a tag from CVS and then build 
> >>that release. 
> >>I have determined that Sharpcvslib doesn't support the export 
> >>command. 
> >>Therefore, I have determined to use TortoiseCVS command 
> line cvs.exe. 
> >>This gets executed but it complains of no password. 
> >>"[cvs-export] cvs export: Empty password used - try 'cvs 
> >>login' with a 
> >>real password"
> >>
> >>I have a <cvs-pass> target that creates a c:\.cvspass file with the
> >>correct password. I have passed this on to the cvs-export 
> command. I 
> >>don't think Tortoise looks at .cvspass. I'm using 
> nant-0.85-rc1. If I 
> >>try the password attribute, it complains about it being 
> >>deprecated and 
> >>aborts the command.
> >>
> >>I have tried to previously checkout the module from the
> >>command line so 
> >>it creates CVS/Root file, with the hope that works.
> >>
> >>How does NAnt use the .cvspass file to pass the password to the cvs
> >>executatble?
> >>
> >>Or is there any way to trick it to get it to work?
> >>
> >>Here is my project build file:
> >><project name="Hello World" default="build" basedir=".">
> >>   <description>The Hello World of build files.</description>
> >>   <target name="checkout" description="checks out sources">
> >>    <cvs-pass cvsroot=":pserver:[EMAIL PROTECTED]"
> >>        passfile="c:\.cvspass"
> >>        password="l1nuxrul3z"
> >>        verbose="true"
> >>    />
> >>    <cvs-export
> >>        passfile="c:\.cvspass"
> >>        usesharpcvslib="false"
> >>        cvsfullpath="c:\Program Files\TortoiseCVS\cvs.exe"
> >>        destination=".."
> >>        cvsroot=":pserver:[EMAIL PROTECTED]"
> >>        revision="HEAD"
> >>        module="Module"
> >>    />
> >>    </target>
> >></project>
> >>
> >>Here is the output:
> >>C:\Projects4\NAntPeopleSolution>nant checkout
> >>NAnt 0.85 (Build 0.85.1793.0; rc1; 11/28/2004)
> >>Copyright (C) 2001-2004 Gerry Shaw http://nant.sourceforge.net
> >>
> >>Buildfile:
> >>file:///C:/Projects4/NAntPeopleSolution/PeopleSolution.build
> >>Target(s) specified: checkout
> >>
> >>
> >>checkout:
> >>
> >> [cvs-pass] Updating .cvspass file 'c:\.cvspass'. [cvs-export] cvs 
> >>export: Empty password used - try 'cvs login' with a real passw
> >>ord
> >>[cvs-export]
> >>[cvs-export] cvs [export aborted]: /usr/local/cvsroot/: no 
> >>such repository
> >>
> >>BUILD FAILED - 0 non-fatal error(s), 3 warning(s)
> >>
> >>C:\Projects4\NAntPeopleSolution\PeopleSolution.build(28,3):
> >>External Program Failed: c:\Program 
> Files\TortoiseCVS\cvs.exe (return
> >>code was 1
> >>)
> >>
> >>Total time: 0.2 seconds.
> >>
> >>Thanks
> >>Ed
> >>
> >>--
> >>Ed Howland
> >>WDT Solutions, LLC.
> >>[EMAIL PROTECTED]
> >>(314) 962-0766
> >>
> >>
> >>
> >>-------------------------------------------------------
> >>SF email is sponsored by - The IT Product Guide
> >>Read honest & candid reviews on hundreds of IT Products from
> >>real users. Discover which products truly live up to the 
> >>hype. Start reading now. 
> >>http://productguide.itmanagersjournal.com/
> >>_______________________________________________
> >>Nant-users mailing list
> >>[email protected] 
> >>https://lists.sourceforge.net/lists/listinfo/nant-users
> >>
> >>    
> >>
> 
> -- 
> Ed Howland
> WDT Solutions, LLC.
> [EMAIL PROTECTED]
> (314) 962-0766
> 
> 


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Nant-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to