Beginning Eclipse CVS – Branching Tutorial 2: Create the Project
<= Back to previous section “Branching Strategies”
Download this zip archive: brtest.zip
The files contained in this archive refer to the two developers in this tutorial’s “team,” Paul and Wing. Decide who will be Paul and who will be Wing. If you are the only person who will be participating, you can play both. Additional people can be additional “Wings.”
- The Workbench is the the complete set of windows and tools provided by Eclipse.
- A Workspace is a folder containing your projects and resources. Each workspace can have settings associated with it which control the workbench layout and behavior. You can have multiple workspaces – for example if you want to synchronize multiple servers to CVS all from your desktop, you can synch them using a workspace located on each server.
- A Project is a set of resources, folders and files. The Project Explorer view provides a tree-structure display of all the resources in the Workspace.
In this tutorial, we’ll create a new empty workspace, add a new project to it, and share the project to CVS so that others can collaborate on it.
At this point the project will be tagged as a milestone and branched, so that two developers can work on different tasks. The discreet lines of code will then be merged together and any conflicts resolved. After tagging again, and further work, a second merge will be performed.
Create a new workspace in a new, empty folder.
- Launch Eclipse. It asks you to select a workspace. Click Browse…
- Choose a location and create a new folder.
- Select the folder you created and click “Choose”.
- The browse dialog closes. Click the OK button.
- You should see the Welcome screen. Click Open Workbench.
This would be a good time to set up your perspectives. If you aren’t sure how to do this, Click here, then return back to this tutorial when you are done. Then select the Resource Perspective.
Create a project in the new workspace
- Create a new project by right-clicking inside the Project Explorer View (Left pane)
- Choose General > Project.
- Call it brtest and click Finish. A folder called brtest will appear in the Project Explorer view.
- Right-click on the new brtest folder, and select Import. Select General > Archive File. Click Next.
- Click Browse… then navigate to brtest.zip. The “Into folder” setting should already be set to your project folder. Click Finish.
- You will be returned to the main window. If you open the project folder, you should now see four text files there.