| 
| Combine cvs commands [message #336904] | Sat, 11 July 2009 16:22  |  | 
| Eclipse User  |  |  |  |  | Hi everybody, 
 In our project we have many repeating tasks, which consist of multiple
 activities.
 
 For example:
 In the beginning of each release cycle, every developer needs to tag some
 modules with his personal tag name for the current release and then create
 a branch based on that tag. Of course, he also needs to check out the
 branch.
 
 Another example,
 Quite often we need to commit a change into two different branches. So,
 commit, switch version, commit, switch version back and so on...
 
 There are many more similar "composed tasks".
 
 After a while, this gets really boring, disturbing to click and click
 and... :)
 
 We could use cvs command line in such cases, but there seems to be some
 problems using eclipse cvs together with command line tools.
 
 Is there a way to create a script to make eclipse cvs plugin to perform
 many tasks automatically?
 
 If this is not possible, can you give me some directions, how to use
 eclipse cvs plugin API to develop a custom solution for my problem?
 
 Thanks,
 Andrus
 |  |  |  | 
| 
| Re: Combine cvs commands [message #336917 is a reply to message #336904] | Mon, 13 July 2009 09:56  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: eclipse-news.rizzoweb.com 
 Andrus Salumets wrote:
 > Hi everybody,
 >
 > In our project we have many repeating tasks, which consist of multiple
 > activities.
 >
 > For example:
 > In the beginning of each release cycle, every developer needs to tag
 > some modules with his personal tag name for the current release and then
 > create a branch based on that tag. Of course, he also needs to check out
 > the branch.
 
 If I understand you correctly, I think that is easily done in one step:
 Team > Branch...
 The wizard will prompt you for the "version name" (which is used as a
 label/tag) and offers to switch to the newly created branch.
 
 (more below)
 
 >
 > Another example,
 > Quite often we need to commit a change into two different branches. So,
 > commit, switch version, commit, switch version back and so on...
 >
 > There are many more similar "composed tasks".
 >
 > After a while, this gets really boring, disturbing to click and click
 > and... :)
 >
 > We could use cvs command line in such cases, but there seems to be some
 > problems using eclipse cvs together with command line tools.
 >
 > Is there a way to create a script to make eclipse cvs plugin to perform
 > many tasks automatically?
 >
 > If this is not possible, can you give me some directions, how to use
 > eclipse cvs plugin API to develop a custom solution for my problem?
 
 You'll want to look at the org.eclipse.cvs plug-in and the
 org.eclipse.team.* plug-ins. One convenient way to learn about the
 existing code and UI ("learn by example", so to speak) is to use Plug-in
 Spy on some part of the UI that is close to what you want to do. To
 invoke Plug-in Spy, open the part of the UI you're interested in and use
 the key combo Alt+Shift+F1
 
 Hope this helps,
 Eric
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.07483 seconds