29.01.2013 Views

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

This operation is allowed if you have outgoing changes or uncommitted changes.<br />

Uncommitted changes are simply ignored, and resources with outgoing changes<br />

can still have their base versions be part of the project version.<br />

To create a version from your workspace:<br />

1. Open the Web perspective.<br />

2. Add any new resources to version control by selecting the resource,<br />

right-clicking, and selecting Team -> Add to version control.<br />

3. Commit to the repository using Team -> Commit and enter a comment.<br />

Note: As you will see later, you should always synchronize with the<br />

repository before committing changes so that you do not overlay changes<br />

made by others. For simplicity we will assume you have done this.<br />

4. Select the Web project Project Navigator view, right-click, and select Team -><br />

Tag as Version.<br />

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

Once again, the comment should be meaningful, for example, BaseVersion,<br />

Version1, etc. It will appear as a comment in the resource history in the Tag<br />

column and beside the version in the CVS Repositories view.<br />

A look at the new version in the CVS Repository Exploring perspective will show<br />

you the resources that make up the version and their revision tags. Figure 15-5<br />

on page 528 shows a version that has resources at two different revision levels.<br />

The index.jsp resource is at revision 1.3. The Master.css resource is at revision<br />

1.1.<br />

Chapter 15. Development in a team environment 527

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

Saved successfully!

Ooh no, something went wrong!