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

Reply via email to