You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Scott Ellsworth <sc...@alodar.com> on 2001/10/30 23:20:15 UTC

Interesting cvspass behavior

At 01:33 PM 10/30/2001 -0800, Scott Ellsworth wrote:
>Now I need to figure out why the cvslogin task is not logging me in, but 
>that is, I suspect, not as big a surprise.

The behavior is interesting.  If I do not specify a passfile, then CVSPASS 
adds entries to C:\Documents and Settings\Scott Ellsworth\.cvspass, as I 
would expect.

The cvs task, though, does not pick up the password from that file.  This 
may be because I am using 1.1.10, rather than the more recent 
1.1.12a.  (ftp.cvshome.org seems to be down, or I would try the upgrade.)

If I specify passfile="./cvspass", then everything works quite happily.

It is likely better to have the passfile be local to the build anyway, but 
thought it an interesting note, and something to watch out for if you are 
so unfortunate as to be working on Windows.

Thanks again to the several people who have pointed out the extra space in 
my earlier build.xml file.

Scott
Scott Ellsworth
scott@alodar.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: java.io.IOException: CreateProcess

Posted by di...@pinksheets.com.
The only other idea I have is:
1.  First use cvs pass to set up ./cvs.passfile
2.  Use command line cvs to pull the data using that passfile

If that works, then ANT _should_ be able to do it.  We do not yet know
whether it actually _can_, but if it cannot, then we know that we need to
fix cvs.

Scott


I could able to pull the stuff out of cvs using command line cvs.
But I am unable to do it with Ant. I have been playing around in different
ways to find out what needs to be fixed in cvs.
I have ensured the directory of my 'cvs' executable lives in is included in
your
PATH environment variable.

Any clues would be appreciated.

Thanks,
Dinesh


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: java.io.IOException: CreateProcess

Posted by Scott Ellsworth <sc...@alodar.com>.
At 11:05 AM 10/31/2001 -0600, dineshram@pinksheets.com wrote:
>Hi scott,
>Thanks for helping me.
>I have explicitly included the passfile="./cvs.passfile" in both cvspass and
>the cvs task definitions.
>
>But still I am getting the same error.
>Any clues please.

The only other idea I have is:
1.  First use cvs pass to set up ./cvs.passfile
2.  Use command line cvs to pull the data using that passfile

If that works, then ANT _should_ be able to do it.  We do not yet know 
whether it actually _can_, but if it cannot, then we know that we need to 
fix cvs.

Scott


>Thanks,
>Dinesh
>
>
>-----Original Message-----
>From: Scott Ellsworth [mailto:scott@alodar.com]
>Sent: Tuesday, October 30, 2001 7:03 PM
>To: Ant Users List
>Subject: Re: java.io.IOException: CreateProcess
>
>
>At 07:11 PM 10/30/2001 -0600, dineshram@pinksheets.com wrote:
> >java.io.IOException: CreateProcess:
> >  cvs -d :pserver:myusername@myipaddress:/share/CVS checkout mypackage
> >error=2
>
>I found I was getting strange errors like this unless I explicitly
>specified passfile="./cvs.passfile" in both the cvspass and the cvs task
>definitions.
>
>Scott
>Scott Ellsworth
>scott@alodar.com
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>

Scott Ellsworth
scott@alodar.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: java.io.IOException: CreateProcess

Posted by Diane Holt <ho...@yahoo.com>.
--- dineshram@pinksheets.com wrote:
> Hi scott,
> Thanks for helping me.
> I have explicitly included the passfile="./cvs.passfile" in both cvspass
> and the cvs task definitions.
> 
> But still I am getting the same error.
> Any clues please.

Make sure the directory your 'cvs' executable lives in is included in your
PATH environment variable.

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: java.io.IOException: CreateProcess

Posted by di...@pinksheets.com.
Hi scott,
Thanks for helping me.
I have explicitly included the passfile="./cvs.passfile" in both cvspass and
the cvs task definitions.

But still I am getting the same error.
Any clues please.

Thanks,
Dinesh


-----Original Message-----
From: Scott Ellsworth [mailto:scott@alodar.com]
Sent: Tuesday, October 30, 2001 7:03 PM
To: Ant Users List
Subject: Re: java.io.IOException: CreateProcess


At 07:11 PM 10/30/2001 -0600, dineshram@pinksheets.com wrote:
>java.io.IOException: CreateProcess:
>  cvs -d :pserver:myusername@myipaddress:/share/CVS checkout mypackage
>error=2

I found I was getting strange errors like this unless I explicitly
specified passfile="./cvs.passfile" in both the cvspass and the cvs task
definitions.

Scott
Scott Ellsworth
scott@alodar.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: java.io.IOException: CreateProcess

Posted by Scott Ellsworth <sc...@alodar.com>.
At 07:11 PM 10/30/2001 -0600, dineshram@pinksheets.com wrote:
>java.io.IOException: CreateProcess:
>  cvs -d :pserver:dineshram@192.78.139.113:/share/CVS checkout otcquote
>error=2

I found I was getting strange errors like this unless I explicitly 
specified passfile="./cvs.passfile" in both the cvspass and the cvs task 
definitions.

Scott
Scott Ellsworth
scott@alodar.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


java.io.IOException: CreateProcess

Posted by di...@pinksheets.com.
Hi,
I am trying to checkout the files from the cvs using Ant.
This is code:

<target name="cvschk" depends="cvslogin">
  <cvs cvsRoot=":pserver:myusername@myipaddress:/share/CVS"
     package="mymodulename"
     dest="${cvsant}"
     />
  <classpath>
        <pathelement location="E:\jCVS-5.2.2" />
  </classpath>
  </target>

  <target name="cvslogin">
    <cvspass cvsroot=":pserver:myusername@myipaddress:/share/CVS"
password="mypassword" />
  </target>

I am using the username,password and ipaddress correctly.

While doing this I am getting the following error.

 java.io.IOException: CreateProcess:
 cvs -d :pserver:dineshram@192.78.139.113:/share/CVS checkout otcquote
error=2

Help me please.

Thanks,
Dinesh


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Interesting cvspass behavior

Posted by di...@pinksheets.com.
Hi scott,
   I am facing the similar problem with cvspass in logging. 
Could you share the solution, if you could resolve the problem.

Thanks in advance,
Dinesh.


-----Original Message-----
From: Scott Ellsworth [mailto:scott@alodar.com]
Sent: Tuesday, October 30, 2001 4:20 PM
To: Ant Users List
Subject: Interesting cvspass behavior


At 01:33 PM 10/30/2001 -0800, Scott Ellsworth wrote:
>Now I need to figure out why the cvslogin task is not logging me in, but 
>that is, I suspect, not as big a surprise.

The behavior is interesting.  If I do not specify a passfile, then CVSPASS 
adds entries to C:\Documents and Settings\Scott Ellsworth\.cvspass, as I 
would expect.

The cvs task, though, does not pick up the password from that file.  This 
may be because I am using 1.1.10, rather than the more recent 
1.1.12a.  (ftp.cvshome.org seems to be down, or I would try the upgrade.)

If I specify passfile="./cvspass", then everything works quite happily.

It is likely better to have the passfile be local to the build anyway, but 
thought it an interesting note, and something to watch out for if you are 
so unfortunate as to be working on Windows.

Thanks again to the several people who have pointed out the extra space in 
my earlier build.xml file.

Scott
Scott Ellsworth
scott@alodar.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>