[EMAIL PROTECTED] writes:

  >   Nicolas OLLIVIER <[EMAIL PROTECTED]> writes:
  > 
  >   > Hi Galen,
  >   > 
  >   > If I execute the cvs command under dos window, it's OK:
  >   > "cvs -d :pserver:olliviern:[EMAIL PROTECTED]:/extra/cvs/RAPTOR
  >   > login"
  >   > (where passwd is replaced with my real password)
  >   > => Logging in to
  >   > :pserver:[EMAIL PROTECTED]:2401/extra/cvs/RAPTOR
  >   > 
  >   > 
  >   > But the same under ant/eclipse always reply "Caught exception:
  >   > CreateProcess: ... login error=2", even when I set the CVSROOT as an
  >   > environment variable and don't use the cvsRoot parameter into the ant
  >   > target.
  >   > 
  >   > Seems that eclipse/ant is not able to find the cvs.exe, or to start a
  >   > process.
  >   > 
  >   > 
  >   > Starting "ant -verbose  cvs_test" at the command line, I get:
  >   > <<<<<<<<<<<<<<<<<<
  >   > Apache Ant version 1.6.2 compiled on July 16 2004
  >   > Buildfile: build.xml
  >   > Detected Java version: 1.4 in: C:\j2sdk1.4.1_02\jre
  >   > Detected OS: Windows XP
  >   > parsing buildfile C:\Users\ollivier\project\RAPTOR\All_build\build.xml 
with
  >   > URI = file:///C:/Users/ollivier/project/RAPTOR/All_build/build.xml
  >   > Project base dir set to: C:\Users\ollivier\project\RAPTOR\All_build
  >   >      [echo] 
  >   >      [echo] RaptorAll build: Version    = 1_4
  >   >      [echo]     
  >   > [available] Found directory:
  >   > C:\Users\ollivier\project\RAPTOR\MajPackage\patch_1_4\Raptor_patch_1_4
  >   > Build sequence for target `cvs_test' is [cvs_test]
  >   > Complete build sequence is [cvs_test, clean, dist_light_all, 
prepare_patch,
  >   > dist_patch, dist_all, javadoc_all, clean_all, dist_full, ftp_webccam, 
all, ]
  >   > 
  >   > cvs_test:
  >   >       [cvs] Executing 'cvs' with arguments:
  >   >       [cvs]
  >   > '-d:pserver:olliviern:[EMAIL PROTECTED]:/extra/cvs/RAPTOR'
  >   >       [cvs] 'login'
  >   >       [cvs] 
  >   >       [cvs] The ' characters around the executable and arguments are
  >   >       [cvs] not part of the command.
  >   >       [cvs] Caught exception: CreateProcess: cvs
  >   > -d:pserver:olliviern:[EMAIL PROTECTED]:/extra/cvs/RAPTOR login
  >   > error=2
  >   > 
  >   > BUILD SUCCESSFUL
  >   > Total time: 0 seconds
  >   > >>>>>>>>>>>>>>>>>>>>>>>>>>>
  >   > 
  >   > Still the same "Caught exception: CreateProcess" error.
  >   > 
  >   > Any idea ?
  > 
  > My guess is that Eclipse doesn't directly know how to handle the
  > prompt that cvs.exe gives you at the command line.

I meant that ant probably doesn't figure the prompt from cvs.exe out.
I know ant notices that prompts are asked for by the underlying
executable and will now error if they aren't given (where in earlier
versions, it just hung and waited), and this may be the error you are
getting.

  > I believe the cvs login command accepts a password on the command line?
  > 
  > I would also bet that eclipse works well with ant "input" task.
  > 
  > So, have your ant login target use the "input" to accept the password
  > and then pass it as a parameter to cvs from ant.
  > 
  > Of course, both are conjectures at this moment cause I'm working with
  > Perforce and not CVS as well as I don't know all that much about
  > eclipse.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to