Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[corona-dev] ReposityAdapter

>Pawel's was intending to ask if there is going to be a method "checkOut()" in our artifact respository adapter. This method is needed to make >a "Join story" where you join a Corona project and then all Workbench projects are checked out from CVS.

 

A question that doesn’t have a simple answer.

The IRepositoryAdapter does have a fetchResource which could be used for function.  The implementation of the IRepositoryAdapter for a CVS Repository would implement the fetchResource method using the cvs checkout. 

 

There is a bigger issue which is when to use IRepositoryAdapter and when to use the native interface to a Repository.  My thinking was that we would reuse as much eclipse client side code as possible.  Eclipse already has a way to checkout multiple Workbench Projects from CVS and I think it would make sense to reuse that code and not re-implement this code in a RepositoryAdapter. 

 

First let try to decide what the Repository configuration for CVS would look like. Here is my guess:

 

<repository-descriptor name="CVS.incubator.org.eclipse.corona.model.container" uri="cvs:pserver:anonymous@206.191.52.50/home/technology/org.eclipse.corona/incubator/org.eclipse.corona.model/container" content-type="eclipse-project"  >

      <description>The first cut at CVS Repository Definition</description>

      <repository-configurations default-configuration-name="CoronaCVSRepositoryConfiguration" >

            <repository-configuration name="CoronaCVSRepositoryConfiguration">

                  <repository-connection-parameters>

                        <repository-connection-parameter name="RepositoryPath" value="/home/technology" />

                        <repository-connection-parameter name="Module" value="org.eclipse.corona/incubator/org.eclipse.corona.model.container" />

                        <resource-subset  type="CVS-TAG" selection-criteria="HEAD" />

                  </repository-connection-parameters>

            </repository-configuration>

      </repository-configurations>

</repository-descriptor>     

 

 

 

 

It seems like the RepositoryAdapter fetch method would find the repository-descriptor for an eclipse project and then use the repository-connection-parameters to make calls to the Eclipse Team plugin for CVS to do the checkout. 

 

The other issue is we would like to use the cvs userid and password defined in the Eclipse Workbench that is issuing the ProjectContainerOpen. Rather than, having the userid in repository-descriptor uri we would use the userid specified in the CVS Repositories View | Properties.  We need to determine if we can access the userid and password value through the Eclipse Team interface.  This capability isn’t required for demo.

 

 

The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.

Back to the top