- Posted by: Raj Shimpi
- Posted on: April 28 2003 12:59 EDT
I have a shell script that has cvs commands for committing files. I call this script from a java class using a runtimeProcess class.
The problem is this script is run many times by a user - may be for cvs updates on the same files, in which case cvs locks the files and the successive updates fail.
I was wondering if there is any way to call cvs directly instead of calling it in a separate process. Then depending on the number of cvs processes running i can either allow a new cvs update/commit.
Integrate "Ant" into your app and check out the various tasks provided.
You should probably look at jCVS or ant. Either way you'll have a platform independent and supported means of interaction with CVS.