error=2 is "File not Found" from memory. This means you probably don't have
the cvs executable in your path. I assume you can reuse cvs included in
WinCVS by adding the WinCVS directory to PATH.
On Tue, 19 Jun 2001 10:47, Viraj Purang wrote:
> HI,
> I keep getting this problem when I try to checkout files from CVS form
> inside my build.xml file.Do I need a plugin or a version/product/type of
> CVS client which can be used from the command line or is in the path of the
> windows environment that I am using.
>
> I am already using the WinCVS client for acessing CVS from my machine and
> as is obvious I use the Windows NT platform currently.
>
> Regards,
> Viraj Purang
>
>
> C:\CVS1\builder>ant build-cvs
> Buildfile: build.xml
>
> build-cvs:
> [echo] Checking out All Required files for Client, Server and Common
> modules:
>
> BUILD FAILED
>
> C:\CVS1\builder\build.xml:40: java.io.IOException: CreateProcess: cvs -d
>
> :pserver:[EMAIL PROTECTED]:/dept/cvs checkout client e
>
> or=2
> --- Nested Exception ---
> java.io.IOException: CreateProcess: cvs -d
>
> :pserver:[EMAIL PROTECTED]:/dept/cvs checkout client error=2
>
> at java.lang.Win32Process.create(Native Method)
> at java.lang.Win32Process.<init>(Win32Process.java:66)
> at java.lang.Runtime.execInternal(Native Method)
> at java.lang.Runtime.exec(Runtime.java:551)
> at java.lang.reflect.Method.invoke(Native Method)
> at
> org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.ja
>v a:509)
> at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:329)
> at org.apache.tools.ant.taskdefs.Cvs.execute(Cvs.java:181)
> at org.apache.tools.ant.Target.execute(Target.java:153)
> at org.apache.tools.ant.Project.runTarget(Project.java:898)
> at org.apache.tools.ant.Project.executeTarget(Project.java:536)
> at org.apache.tools.ant.Project.executeTargets(Project.java:510)
> at org.apache.tools.ant.Main.runBuild(Main.java:421)
> at org.apache.tools.ant.Main.main(Main.java:149)
>
> Total time: 2 seconds
--
Cheers,
Pete
*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof." |
| - John Kenneth Galbraith |
*-----------------------------------------------------*