Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java and CVS

Status
Not open for further replies.

jrthor2

Programmer
Feb 21, 2003
10
US
I am starting a project where we have a web application that we want to run cvs commands to update our production servers. The web application will be a java web page (j2ee). We run on linux servers, and what would happen when the button on the web page would be this:

* do a cvs update of a local repository to get the latest code from cvs
* do an rsync to see what files have changed in multiple projects
* copy only the files that have changed to their respective directories on our application server
* run another script that copies the files from our application server to our content servers (this script is already written)

Can anyone tell me how I would start coding this in Java? I've never run linux (cvs) commands from Java before (I'm kind of new).

Thanks!
 
Well, you can execute OS commands, but another optios is using a Java CVS library like this so your application will be truly J2EE and not bounded to a Linux application server.

Cheers,
Dian
 
I would recommend checking out two websites..

One is jCVS

and the other (which I recommend trying first) is Java CVS which is an API right through Netbeans.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top