Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tools-dev] How to create a script for running CVS commands in Eclipse

I have lot of CVS additions, updates and commits to perform in my project. Is
it possible to write a script that can be made to run against Eclipse and which
will just do the same CVS update and commits etc as i would have done manually.

It is not official API, but in Eclipse 2.1.1 you can get the CVS team provider as follows:

CVSTeamProvider teamProvider =
  (CVSTeamProvider) RepositoryProvider.getProvider(project,
                         CVSProviderPlugin.getTypeId());


Then you can perform some CVS operations on it. You find a good example at:
http://www.bonevich.com/cgi-bin/cvsweb.cgi/boneclipse/com.bonevich.eclipse.cvsgrapher/

However in 3.0 the "API" changed.

--Chris



Back to the top