Clayton, thanks for the response, see inline responses below...

I have downloaded the 07-Aug nightly build of nAnt and nAntContrib

NAnt 0.85 (Build 0.85.1680.0; net-1.0.win32; nightly; 8/7/2004)

>-----Original Message-----
>From: Clayton Harbour [mailto:[EMAIL PROTECTED] 
>Sent: Saturday, August 07, 2004 1:03 AM
>To: Morris, Jason; [EMAIL PROTECTED]
>Subject: RE: [Nant-users] Need help with the <cvs> task using 
>the commit command
>
>Hi Jason,
>
>I am not able to replicate the first issue below, when I 
>specify a cvsroot without a username (i.e. I used
>:sspi:loki.sporadicism.local:/cvsroot/claytonharbour) I do not 
>get an authentication error.

I don't seem to be getting this now...probably something on my end.

  The command args being passed in 
>your example might be a bit odd, is escapeDB a module?

Yes, escapeDB is the CVS module name and the <cvs> task is appending it
to the end of the command.

  Could 
>you try the following from the command line:
>       "C:\Program Files\TortoiseCVS\cvs.exe"
>-d:sspi:OCSCCSDCVS01:/earth commit "Intel.Escape.build.number.xml"
>escapeDB
>

Here is the command line:

C:\projects\earth\escapeDB>cvs.exe -d:sspi:OCSCCSDCVS01:/earth commit -m
"commit
 new version number" "Intel.Escape.build.number.xml" escapeDB

Here is the response

cvs commit: nothing known about `escapeDB'
cvs [commit aborted]: correct above errors first!

However, if I remove the escapeDB from the end of the command line:

C:\projects\earth\escapeDB>cvs.exe -d:sspi:OCSCCSDCVS01:/earth commit -m
"commit
 new version number" "Intel.Escape.build.number.xml"

I get a successful response.

Checking in Intel.Escape.build.number.xml;
/earth/escapeDB/Intel.Escape.build.number.xml,v  <--
Intel.Escape.build.number.
xml
new revision: 1.5; previous revision: 1.4
Done

It appears that the escapeDB at the end (which is the CVS module
supplied as the module attribute) is causing the problem.  I tried to
remove the module attribute, but it is required by the <cvs> task.  I
also tried to set it to an empty string and again, it failed the check.
Is there any way to not have the module name appended to the
commandline?

Also, would it be better to use the <arg> reference type to add other
cvs command line arguments, instead of in the commandline attribute?

>
>For the second issue the following should work:
>       <cvs command="commit" 
>                usesharpcvslib="false"
>                destination="." 
>                cvsroot=":sspi:OCSCCSDCVS01:/earth" 
>                module="${cvs.module.name}"
>                verbose="true"
>             commandline="-m &quot;commit new version number&quot;">
>                <fileset>
>                       <include name="${version.build.file}"/>
>               </fileset>
>       </cvs>
>
>       NOTE: added attribute commandline="-m &quot;commit new 
>version number&quot;"
>
>
>Cheers,
>
>
>Clayton
>
>> -----Original Message-----
>> From: Morris, Jason [mailto:[EMAIL PROTECTED]
>> Sent: August 6, 2004 2:17 PM
>> To: [EMAIL PROTECTED]
>> Subject: [Nant-users] Need help with the <cvs> task using the commit 
>> command
>> 
>> 
>> I am trying to commit a file using the latest <cvs> task from NAnt 
>> 0.85 (Build 0.85.1677.0; net-1.0.win32; nightly;
>> 8/4/2004) and NAntContrib from 8/3/2004 on a Win XP Pro sp1 box.
>> 
>> I am issuing the following task
>> 
>>              <cvs command="commit" 
>>                       usesharpcvslib="false"
>>                       destination="." 
>>                       cvsroot="${cvs.escape.root}" 
>>                       module="${cvs.module.name}"
>>                       verbose="true">
>>                       <fileset>
>>                              <include name="${version.build.file}"/>
>>                      </fileset>
>>              </cvs>
>> 
>> Where cvs.escape.root is
>> :sspi:[EMAIL PROTECTED]:/earth" />
>> 
>> I am not using the sharpcvslib because it doesn't support the sspi 
>> protocol, so I am using the cvs client provided in the TortoiseCVS 
>> client (www.tortoisecvs.org)
>> 
>> When I execute this task, I get a authentication failed error.
>> 
>>       [cvs] Working directory: C:\projects\earth\escapeDB
>>       [cvs] Executable: C:\Program Files\TortoiseCVS\cvs.exe
>>       [cvs] Arguments:  -d:sspi:[EMAIL PROTECTED]:/earth
>> commit "Intel.Escape.build.number.xml" escapeDB
>>       [cvs] Starting 'C:\Program Files\TortoiseCVS\cvs.exe ( 
>> -d:sspi:[EMAIL PROTECTED]:/earth commit 
>> "Intel.Escape.build.number.xml" escapeDB)' in 
>> 'C:\projects\earth\escapeDB'
>>       [cvs] cvs [commit aborted]: Authentication failed
>> 
>> But if I try to commit it using TortoiseCVS, the command line is
>> 
>> "C:\Program Files\TortoiseCVS\cvs.exe" "-q" "-x" "commit" 
>> "-m" "This is a test" "Intel.Escape.build.number.xml" 
>> CVSROOT=:sspi:ocsccsdcvs01:/earth
>> 
>> But the command line from the cvs task is
>> 
>> 'C:\Program Files\TortoiseCVS\cvs.exe ( 
>> -d:sspi:[EMAIL PROTECTED]:/earth commit 
>> "Intel.Escape.build.number.xml" escapeDB
>> 
>> The sspi doesn't require a username in front of the cvs server name, 
>> but if you leave that out, you get an error requiring a username in 
>> the cvsroot.
>> 
>> Can anyone help me out?  Is what I am doing not possible?  
>Is there a 
>> different/better way?
>> 
>> I also want to add a commit (-m) argument, but if I do 
>something like 
>> this
>> 
>>              <cvs command="commit" 
>>                       usesharpcvslib="false"
>>                       destination="." 
>>                       cvsroot="${cvs.escape.root}" 
>>                       module="${cvs.module.name}"
>>                       verbose="true">
>>                       <fileset>
>>                              <include name="${version.build.file}"/>
>>                      </fileset>
>>                      <arg value="-m" />
>>                      <arg value="commit new version number" />
>>              </cvs>
>> 
>> It has a problem because the second arg is not quoted and I see the 
>> cvs issue help text.  How can I quote the argument?
>> 
>>       [cvs] Working directory: C:\projects\earth\escapeDB
>>       [cvs] Executable: C:\Program Files\TortoiseCVS\cvs.exe
>>       [cvs] Arguments:  -m commit new version number 
>> -d:sspi:[EMAIL PROTECTED]:/earth commit 
>> "Intel.Escape.build.number.xml" escapeDB
>>       [cvs] Starting 'C:\Program Files\TortoiseCVS\cvs.exe ( 
-m commit 
>> new version number -d:sspi:[EMAIL PROTECTED]:/earth commit 
>> "Intel.Escape.build.number.xml" escapeDB)' in 
>> 'C:\projects\earth\escapeDB'
>>       [cvs] C:\Program Files\TortoiseCVS\cvs: invalid option -- m
>>       [cvs] Usage: cvs [cvs-options] command 
>> [command-options-and-arguments]
>>       [cvs]   where cvs-options are -q, -n, etc.
>>       [cvs]     (specify --help-options for a list of options)
>>       [cvs]   where command is add, admin, etc.
>>       [cvs]     (specify --help-commands for a list of commands
>>       [cvs]      or --help-synonyms for a list of command synonyms)
>>       [cvs]   where command-options-and-arguments depend on 
>> the specific
>> command
>>       [cvs]     (specify -H followed by a command name for
>> command-specific help)
>>       [cvs]   Specify --help to receive this message
>>       [cvs]
>>       [cvs] The Concurrent Versions System (CVS) is a tool 
>for version 
>> control.
>>       [cvs] For CVS updates and additional information, see
>>       [cvs]     the CVSNT home page at http://www.cvsnt.org/
>> 
>> Jason
>> 
>> 
>> -------------------------------------------------------
>> This SF.Net email is sponsored by OSTG. Have you noticed the changes 
>> on Linux.com, ITManagersJournal and NewsForge in the past few weeks? 
>> Now, one more big change to announce. We are now OSTG- Open Source 
>> Technology Group. Come see the changes on the new OSTG site. 
>> www.ostg.com _______________________________________________
>> Nant-users mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/nant-users
>> 
>


-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to