- This topic has 3 replies, 2 voices, and was last updated 14 years, 2 months ago by
support-swapna.
-
AuthorPosts
-
brr7907MemberI just upgraded to MyEclipse 9.0 and I’m having an issue with one of the steps in our ant script. Initially after upgrading the ant script worked fine. Then I committed changes to CVS through Team…Commit. When I committed the changes I was prompted for the new security workflow, I provided the information and everything was committed without issue. I then ran our ant script to pull all of the latest code from CVS and I get the following error.
java.io.IOException: CreateProcess: cvs -d:pserver:cvsread:password@cvs.xxxxxxxx.com:/data/cvsroot/bssdev export -rCreditUsage_20110331 ManageUsage error=2
Some additional facts that might help are:
The username/password I use when committing is different than the one in the ant script
When I leave eclipse and run CVS directly on the command line I can use the username/password in the error above to succesfully retrieve the code from CVS
Thanks in advance for the help.
April 18, 2011 at 5:05 am #316124
support-swapnaModeratorbrr7907,
Sorry that you ran into this issue.
1)
Initially after upgrading the ant script worked fine
Were you able to pull code from CVS using the username/password d:pserver:cvsread:password@cvs ?
2) This error occurs because the CVS executable (cvs.exe) is either not found in the execution path, or the path to it contains spaces (e.g. it has been placed under Program Files). Make sure that the CVS client executable is in some directory on your path that does not contain any spaces in its full name.
3) You can run your ant build like this :
ant -debug [target]
this will tell you better what is happening.4) Also copy paste the entire error related to CVS logged in the .log file which is located at <workspace dir>/.metadata/.log file here.
April 18, 2011 at 9:00 am #316131
brr7907MemberThe answer to your #1 is yes, it did work and then stopped working.
However, not for the reasons I thought it might have. I jumped to the conclusion that it was related to the new security workflow because that was the ‘new’ thing that had happened between the time it worked, and then didn’t work. However, this was only 1 new thing and it was not the cause of my problem.
I didn’t share in my original post that I am upgrading to MyEclipse 9.0 while setting up a new development machine. Your #2 below was super helpful in reminding me to re-check the basics. My system PATH had been mangled in between the time that ant worked/failed from some other software that I installed.
Finding out the problem was my PATH has led to a sore forehead (whack)…but at least I can build from CVS again with Ant. 🙂
Thanks for the help and the quick response.
April 19, 2011 at 12:21 am #316148
support-swapnaModeratorbrr7907,
Glad that you are all set.
Do let us know if you have any other issues. -
AuthorPosts