You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Melissa Marquis <mm...@empactsolutions.com> on 2003/05/06 20:44:34 UTC
RE: cvs problem - characters around the executable andargumentsare not part of command
Well, kind of...
Since I log in prior to running the 'update' command in a ant target:
<target name="cvs-login" >
<cvspass cvsroot=":pserver:mmarquis@dcvshost1:/home/empcvs" password="mypassword"/>
</target>
and then the target runs with 'cvs-login' as a dependency:
<target name="fetch" depends="prepare, cvs-login" description="Get latest code updates from CVS">
<cvspass cvsroot=":pserver:mmarquis@dcvshost1:/home/empcvs" password="mmarquis"/>
<cvs cvsRoot=":pserver:mmarquis@dcvshost1:/home/empcvs" command="update -P" />
</target>
To run it on the command line I do:
cvs login
cvs -d:pserver:mmarquis@dcvshost1:/home/empcvs update -P
This works.
If I first log in (which is what my target does only 'Antish')
-----Original Message-----
From: Jesse Stockall [mailto:stockall@magma.ca]
Sent: Tuesday, May 06, 2003 1:00 PM
To: Ant Users List
Subject: RE: cvs problem - characters around the executable
andargumentsare not part of command
On Tue, 2003-05-06 at 12:55, Melissa Marquis wrote:
> Sorry - it fails on:
> [cvs] The ' characters around the executable and arguments are
> [cvs] not part of the command.
>
> and then as a result I get:
> [cvs] CVS_PASSFILE=c:\Home\PersonalFolders\M Marquis\.cvspass
> [cvs] cvs update: authorization failed: server dcvshost1 rejected access t
> o /home/empcvs for user mmarquis
>
>
If you paste the commands (from the verbose output) on the command line,
what happens?
It looks like the password in your .cvspass file is either missing or
incorrect.
--
Jesse Stockall <st...@magma.ca>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: cvs problem - characters around the executable andargumentsare
not part of command
Posted by Jesse Stockall <st...@magma.ca>.
On Tue, 2003-05-06 at 14:44, Melissa Marquis wrote:
> Well, kind of...
> Since I log in prior to running the 'update' command in a ant target:
>
> <target name="cvs-login" >
> <cvspass cvsroot=":pserver:mmarquis@dcvshost1:/home/empcvs" password="mypassword"/>
> </target>
>
>
> and then the target runs with 'cvs-login' as a dependency:
>
> <target name="fetch" depends="prepare, cvs-login" description="Get latest code updates from CVS">
> <cvspass cvsroot=":pserver:mmarquis@dcvshost1:/home/empcvs" password="mmarquis"/>
> <cvs cvsRoot=":pserver:mmarquis@dcvshost1:/home/empcvs" command="update -P" />
> </target>
>
> To run it on the command line I do:
> cvs login
> cvs -d:pserver:mmarquis@dcvshost1:/home/empcvs update -P
>
>
> This works.
>
>
Your 'fetch' and 'cvs-login' targets are specifying a different
password, is this a typo?
Once you have logged in once, and the password is stored in your
.cvspass you shouldn't have to keep specifying it. You can just run your
'update -P'
--
Jesse Stockall <st...@magma.ca>