Sharing an Eclipse Project with AccuRev

Sharing is the process of placing files associated with an Eclipse project under AccuRev control. You might want to share a project with AccuRev to use the configuration management capabilities of AccuRev for a project that already exists in Eclipse.

Note: Project sharing functionality is available for Eclipse 3.4 and later.

How Shared Eclipse Project Files Populate AccuRev Workspaces

The Sharing process places files from Eclipse projects in an AccuRev workspace in a way that is consistent with how the AccuRev workspace was initially created.

If your Eclipse project is not located within an AccuRev workspace prior to sharing, then a workspace is created for you during the Sharing process and you choose which files you want to place in the workspace. The new workspace is initially populated with only the files you select. Note that the basis stream of the workspace might include other files and an AccuRev Update command will populate the new workspace with all the files from the basis stream.

If your Eclipse project is already located within a AccuRev workspace, then the Sharing process depends on how the AccuRev workspace was initially created:

  • If your Eclipse project is located within an AccuRev workspace that was created with the InitialContents – Same as Basis Stream option, then all the files from the Eclipse project are promoted to the workspaces’s basis stream during the Sharing process.
  • If your Eclipse project is located within an AccuRev workspace that was created with the Initial Contents – Pick and choose from Basis stream option, then you choose the files from the Eclipse project that you want to promote to the basis stream of the workspace.