ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Melissa Marquis" <mmarq...@empactsolutions.com>
Subject RE: cvs problem - characters around the executable andargumentsarenot part of command
Date Tue, 06 May 2003 19:14:46 GMT
Also,  when I run ant with verbose to see what is going on in either scenario (with cvs-login
target and without), I see: 

[cvs] Executing 'cvs' with arguments:
[cvs] '-d:pserver:mmarquis@dcvshost1:/home/empcvs'
[cvs] 'update'
[cvs] '-P'
[cvs]
[cvs] The ' characters around the executable and arguments are
[cvs] not part of the command.






Sorry - I had changed it to "mypassword" for public viewing (to the list) and didn't change
it in the target I copied in.  It is "mmarquis" and is not different from the target. 

Yea - my understanding was that it would be set and I would not have to re-login to the system.
 

If I run $ant fetch and remove the dependency to cvs-login - I get: 

$ ant fetch
Buildfile: build.xml

init:

startrecorder:

prepare:

fetch:
      [cvs] Using cvs passfile: c:\Home\PersonalFolders\M Marquis\.cvspass

      [cvs] cvs update: authorization failed: server dcvshost1 rejected access t
o /home/empcvs for user mmarquis

BUILD SUCCESSFUL
Total time: 1 second


If I run $ant fetch with the cvs-login - I get: 

$ ant fetch
Buildfile: build.xml

init:

startrecorder:

prepare:

cvs-login:

fetch:
      [cvs] Using cvs passfile: c:\Home\PersonalFolders\M Marquis\.cvspass

      [cvs] cvs update: authorization failed: server dcvshost1 rejected access t
o /home/empcvs for user mmarquis

BUILD SUCCESSFUL
Total time: 1 second

When I run the -verbose to see what is happening I find this (in both scenarios): 




-----Original Message-----
From: Jesse Stockall [mailto:stockall@magma.ca]
Sent: Tuesday, May 06, 2003 3:04 PM
To: Ant Users List
Subject: RE: cvs problem - characters around the executable
andargumentsarenot part of command


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 <stockall@magma.ca>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message