Difference between revisions of "STEM Source Code"

From Eclipsepedia

Jump to: navigation, search
(Accessing the STEM Source Code Repository with CVS)
(How do I apply a patch that someone sent me?)
Line 72: Line 72:
  
 
To apply a patch, such as one generated in the previous step, do
 
To apply a patch, such as one generated in the previous step, do
the following:</p>
+
the following:
 
<ol>
 
<ol>
 
       <li>Select the changed project in the Navigator or other view.</li>
 
       <li>Select the changed project in the Navigator or other view.</li>

Revision as of 00:08, 4 April 2007

Contents

STEM Source Code

All of the files that constitute the STEM project are maintained in a “source code control” system. Anyone can obtain a copy of the files in the system, but only people designated as “committers” are allowed to add new files or make other changes to the repository.

The only files that are in the repository are those that cannot be derived from others. For instance, Java source files would be in the repository, but not Java class files.

The following sections cover some of the more common CVS tasks that would use for STEM development. For more information:

Accessing the STEM Source Code Repository with CVS

All elements of the Eclipse STEM project are available for anonymous read-only access to the development CVS repository.

  • Anonymous CVS Connection Information
    • Host: dev.eclipse.org
    • Repository Path: /cvsroot/technology
    • User: anonymous
    • Password: leave blank
    • Connection Type: pserver

To import the STEM plugin projects from CVS using the Eclipse import function, you can follow these steps:

  • Startup Eclipse with c:\stem as the workspace.
    • select file->import
    • select CVS->Projects from CVS->next
    • fill in the resulting panel with the Repository information above.
    • select next
    • select Use existing module
    • Find org.eclipse.ohf from the resulting list.
    • expand org.eclipse.ohf -> plugins
    • select all of the org.eclipse.ohf.stem.* projects
    • select finish

The optional STEM projects are:

  • org.eclipse.ohf.stem.sample
  • org.eclipse.ohf.stem.utility

Currently the rest of the org.eclipse.ohf.stem.* projects are required.

At this point, all of the projects should be able to be checked out and then built with no errors and usually only 2 warnings. The remaining warnings about missing files will be resolved in the subsequent steps when the disease scenario is built.

The repository is also available for browsing here.

How do I send someone a patch?

If you have modified a project that you checked out from CVS, you may want to send those changes to someone else. This often occurs when you do not have commit rights, but want to send the changes to someone who does. To create a patch file:

  1. Select the changed project in the Navigator or other view.
  2. Context Menu->Team->Create Patch...
  3. Select a location for the patch.
  4. Use E-mail or other delivery method to send the patch to someone else.
  5. If the patch is associated with a Bugzilla item, it is a good idea to append to the Bugzilla item with the patch as an attachment.

Note that Create patch can be run with multiple projects selected.

How do I apply a patch that someone sent me?

To apply a patch, such as one generated in the previous step, do the following:

  1. Select the changed project in the Navigator or other view.
  2. Context Menu->Compare With->Patch...
  3. Fill in the location of the patch file
  4. Click Next. A summary of changed files will appear.
  5. Click Finish. The changes are now merged into the workspace.
  6. Context Menu->Team->Synchronize.
  7. After testing the patch, if you have commit access, you may then commit the changes into the repository.

Committer access to CVS

Developers with commit rights have individual user ids and passwords in the Eclipse project development repository. As a committer you can use SSH (Secure SHell) to connect to the CVS repository as follows. Go to a Repository View and add a new CVS repository location. When asked for the repository location enter the following:

Committer CVS Connection Information
Host dev.eclipse.org
Repository Paths /cvsroot/technology
User (your committer user id, supplied by the webmaster)
Password (your committer password)
Connection Type extssh

Once your information is authenticated, you can browse the repository and add projects to your workspace. If you do some changes that you'd like to contribute, after testing and ensuring that you have followed the contribution guidelines, you are free to release your changes to the repository. Of course, you can only release changes to projects for which you have commit rights. The current list of committers for OHF can be found here.

Note that you can use the SSH protocol and your Eclipse user id to access projects for which you are not a committer but you will not be able to release changes.

More information about CVS usage with Eclipse is available here.