ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas OLLIVIER <>
Subject RE: cvs with ant
Date Mon, 03 Jan 2005 17:03:45 GMT
Hi Galen,

If I execute the cvs command under dos window, it's OK:
"cvs -d
(where passwd is replaced with my real password)
=> Logging in to

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

Seems that eclipse/ant is not able to find the cvs.exe, or to start a

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] RaptorAll build: Version    = 1_4
[available] Found directory:
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] Executing 'cvs' with arguments:
      [cvs] 'login'
      [cvs] The ' characters around the executable and arguments are
      [cvs] not part of the command.
      [cvs] Caught exception: CreateProcess: cvs login

Total time: 0 seconds

Still the same "Caught exception: CreateProcess" error.

Any idea ?

-----Original Message-----
From: news [] On Behalf Of
Sent: 03 January, 2005 14:17
Subject: Re: cvs with ant

Nicolas OLLIVIER <> writes:

> Hi antoine,
> Starting the task cvs_test under eclipse 3.0.0 on windows XP (team 
> plugin
> installed)
>     <target name="cvs_test">
>         <cvs cvsRoot=" 
>              command="login"
>              output="output.txt"
>              error="error.txt"
>          />
>     </target>
> I get the following error:
> [cvs] Caught exception: CreateProcess: cvs -d 
> login error=2
> Do you know why I got this exception ?

I'm not all that strong with cvs usage from ant, but:

When you executed the above, did you pass that command a password?  A CVS
login needs that.  (Since you are using pserver, I would think you would
just login outside of ant and not make a target out of it, but I guess thats
probably dotn your ts and crossn ...)

Another thing to make sure of.  Can you test your ant tasks at the command
line before introducing eclipse to the mix?  At the command line, run it
with -verbose option and see if there is any information like a PATH
variable.  Maybe ant is picking a cvs executable up from somewhere other
than your environment.

Galen Boyer

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message