29.01.2013 Views

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

It makes sense to do this when you first share the project in order to give<br />

everyone a good comparison point. Future versions can be made whenever the<br />

code has reached a point that you would want to save. Adding the project to<br />

version control in the commit is not the same as creating a version. Versions can<br />

be made in either of the following ways:<br />

► From the branch in the CVS Repositories view. This creates a version from<br />

the repository branch copy of the project. Use this option if you want all<br />

committed changes from all developers of the project.<br />

► From the Team menu in the Project Navigator view. This creates a version<br />

from the project in your workspace. Only resources that you have committed<br />

will be included. If you have uncommitted resources you will be notified and<br />

given an option to continue without them. If you use this option you will not<br />

pick up any committed changes from other users. Versioning a project with<br />

uncommitted or outgoing changes is handy if you have to split the project at<br />

the point where you started making changes to the resources and commit the<br />

resources to another branch.<br />

Version from branch<br />

You can version from the branch in the CVS Repository Exploring perspective by<br />

selecting the project under the desired branch. When versioning from the branch<br />

you are versioning the latest resource versions that are in the branch at that<br />

moment in time.<br />

Note: You should not version your projects from the branch if you are not sure<br />

what is currently committed in the branch.<br />

In order to version a project it must be associated with a branch. If this is not the<br />

case, you must first associate it.<br />

To create a version from the branch:<br />

1. Open the CVS Repository Exploring perspective.<br />

2. Select the Web project in the CVS Repositories view under the branch (for<br />

example, HEAD), right-click, and select Tag as Version.<br />

3. Enter a comment and click OK.<br />

Version from workspace<br />

When versioning a project from the workspace, the base version of the resources<br />

in the workspace is captured as part of the project version. This is the preferred<br />

method of versioning a project because you know exactly which resource<br />

versions will be in the project version.<br />

526 <strong>IBM</strong> <strong>WebSphere</strong> <strong>Application</strong> <strong>Server</strong> - Express V5.0.2 Developer Handbook

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!