Java to CVS communication
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   vijay_dayafule
Posted On:   Thursday, January 30, 2003 03:32 AM


Can anyone help me out with a example how to login into
CVS(Concurrent Version Control System Deployed on Linux)
and CHECK-IN AND CHECK-OUT the latest or previous versions files from the CVS.



They are many clients available for CVS, but i want to do with Java only.
My application has to talk to CVS for getting latest files.



Thank Q
Vijay

Re: Java to CVS communication

Posted By:   Stephen_Ostermiller  
Posted On:   Monday, February 3, 2003 06:03 AM

jCVS is a pure Java, open source (GPL) CVS client written by Tim Enders. It even comes with a com.ice.cvsc client/server protocol package that can be reused in Java applications that want to connect to CVS on their own.


http://jcvs.org/

Re: Java to CVS communication

Posted By:   Christopher_Koenigsberg  
Posted On:   Thursday, January 30, 2003 07:08 AM

Eclipse/WSAD comes with a CVS plug-in, so take a look at the Eclipse source code (http://www.eclipse.org)



There are some annoying things about the Eclipse Java plugin implementation of a CVS client, though:



It won't expand keywords (i.e. "$Id$"). Normally CVS clients WILL expand keywords by default, unless you specifically tell them not to (e.g. because the file is binary). But the Eclipse Java version of CVS assumes that any file could be binary, apparently as a simplifying assumption in the code, so it never expands keywords.



It sometimes makes CVS move some files to the "Attic" (i.e. CVS considers them "deleted"), but then continues to use them and update them!!! so if you try and check out the CVS module (for an Eclipse project) from a non-Eclipse client, you don't get all the files that Eclipse is using!!

About | Sitemap | Contact