Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-vcm-dev] Adding/Refreshing CVS resources programmatically

Roberto,

Do you require that the resources be added to version control immediately
or are you just concerned that a user may miss committing a resource? We've
had the same problem with the .project file. We considered automatically
adding it to version control but decided against it because some user do
not want to (or can't) store this file in the repository. Our solution for
CVS is to make it appearent to the user when files are not under version
control (using decorators and prompting) but to make it easy for them to
commit these files. To this end, commiting in the sync view will prompt to
add unadded resources and the plan is to give this same behavior to Team >
Commit (see bug 22372 http://dev.eclipse.org/bugs/show_bug.cgi?id=22372).
Do you think that such facilities would be enough for you or do you really
feel that you need a standard API to add resources?

Michael



                                                                                                                                       
                      birdo@xxxxxxxxxxxx                                                                                               
                      (Roberto Scaramuzzi)            To:      platform-vcm-dev@xxxxxxxxxxx                                            
                      Sent by:                        cc:                                                                              
                      platform-vcm-dev-admin@         Subject: [platform-vcm-dev] Adding/Refreshing CVS resources programmatically     
                      eclipse.org                                                                                                      
                                                                                                                                       
                                                                                                                                       
                      09/03/2002 04:54 PM                                                                                              
                      Please respond to                                                                                                
                      platform-vcm-dev                                                                                                 
                                                                                                                                       
                                                                                                                                       



We are writing an Eclipse 2.0 plugin. Our plugin generates configuration
files that are stored in a separate directory under the project root. These

files are usually created when the user presses OK in a Preference or
Properties page.

We would like to be able to add the configuration directory and any new
configuration files that are generated to CVS (or whatever VCM provider is
in
use for the project) when they are created.

If this is not possible, we would like to make it so that Eclipse will
inform
the user (maybe by generating a task) when these files are created, so that

the user can add them manually.

As far as I can tell, all the CVS functionality is in internal packages,
and
the Team plugin does not provide any methods for adding/updating etc. files

and directories programmatically, so the only solution I see is for our
plugin to generate cvsmarkers when new files are created or changed. I am
not
happy with this solution because it will only work with CVS and not other
VCM
providers.

Is this correct, or am I missing something?

--
Roberto Scaramuzzi
System Engineer
Parasoft, Inc.
_______________________________________________
platform-vcm-dev mailing list
platform-vcm-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-vcm-dev






Back to the top