Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 158908 - Cannot run program "cvs" (in directory "c:\home\ant_hill"): CreateProcess error=2 Cannot run program "cvs" (in directory "c:\home\ant_hill...
Product: projects
Classification: Unclassified
Component: Ant
PC Windows XP
: P3 (vote)
Assigned To: Jesse Glick
Depends on:
  Show dependency treegraph
Reported: 2009-02-20 17:09 UTC by ncrowdy
Modified: 2009-02-24 18:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT

stacktrace (2.48 KB, text/plain)
2009-02-20 17:11 UTC, ncrowdy

Note You need to log in before you can comment on or make changes to this bug.
Description ncrowdy 2009-02-20 17:09:43 UTC
The build script crashes when trying to export a module from CVS using the following ant task.

<cvs command="export -R" tag="${release.tag}" dest="${ant_hill}" package="cloe_screen" failonerror="true"/>

The values of the environment variables are, release.tag=labsys_5_4_rc1 and ant_hill=c:\home\ant_hill . I recalled in
earlier versions of NetBeans that the IDE didn't run correctly if installed in a directory with a space character in t
the path. I therefore reinstalled 6.5 into a directory without spaces in the path, C:\home\bin\NetBeans_6.5. This made
no difference.

Trace will be attached.
Comment 1 ncrowdy 2009-02-20 17:11:40 UTC
Created attachment 77206 [details]
Comment 2 ncrowdy 2009-02-20 17:36:19 UTC
I have a copy of Netbeans 6.5 installed in Ubuntu 8.10 running as a guest in VirtualBox on the same PC from which the
original bug report originated.

The same build script within the same NB project, and in particular, the cvs task work fine in this environment. So this
would appear to be a XP specific bug.

I apologise if I've not attributes this problem to the correct team; it seemed a close call between ant and cvs.
Generally, I've had no problems with the default cvs client included with NB on either XP or Linux.
Comment 3 Jesse Glick 2009-02-20 18:46:30 UTC
Can you run the same script from the command line? Is cvs.exe in fact in your path? Did you specify an executable of
"cvs" as opposed to "cvs.exe"? There are a lot of possible explanations, but I think it is unlikely that NetBeans (as
opposed to Ant) code is responsible for the problem.
Comment 4 ncrowdy 2009-02-24 18:41:50 UTC
You're absolutely correct and please accept my apologies for wasting your time. The PATH didn't include the CVS
installation folder for some reason and I jumped to the wrong conclusion too quickly.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo