Node:WSAD, Next:, Previous:Resources, Up:Top



Using CVS via the Eclipse or WSAD CVS plugin

IMPORTANT! Before adding any WSAD projects to CVS, make sure that you have named the directories correctly. See the porting howto at http://admc.com/blaine/howtos. Pay particular attention that the source directories should be named source for Java projects, and JavaSource for Web projects.

Setup

BEFORE you check out or commit any project/module, go to Windows / Preferences / Team and make the following settings.

These changes have to be made for every WSAD Workspace that you use. (This is because these settings are saved in the workspace, and therefore apply only to the current workspace).

Recommended Practices

The WSAD/Eclipse Team plugins follow the CVS convention that

commit
means upload changes TO repository
update
means download changes FROM repository.


committing and updating
In your J2EE navigator, select a super-set of all of the items that you wish to commit and/or update. These could be individual files and/or folders and/or WSAD projects containing the files that you wish to commit/update. Right-click and Team/Synchonize (either one). Your synchronization window will list all suggested commits and updates. Look it over carefully with particular attention to the icons which clearly show the type of change. Arrows to the right mean commits, arrows to the left mean updates. In most cases, you will want to make all of the suggested changes. In that case, select all of the top-level items in the syncro view, right-click and select update, then the same but select commit. If you add new resources, for some reason WSAD insists that you confirm you are adding new files (even though you just confirmed the icons in the synchro window which show file additions).


Keyword expansion
It is often very useful to code in keywords that will dynamically expand to the appropriate value. To see the CVS revision number right in your source file (like a .java or a .xml file), type $Revision$ in the source file. When you commit it, and upon all future checkouts and updates, $Revision$ will be replaced with the appropriate revision number.

In Javadoc comments, keywords can save a lot of work, and increase accuracy and consistency. For your class Javadoc header, instead of typing in your name for Author, the data and revision number, you cut and paste a boilerplate with the appropriate keywords.

The available keywords are listed at http://www.linuxselfhelp.com/gnu/cvs/html_chapter/cvs_17.html#SEC78.

Making a new CVS module for a WSAD project

To add a new WSAD project to CVS, you will add a new CVS module. Be aware that you can not just right-click on the PVCS module and do Team/Share.... We have restrictions in place so that you can only upload a project if a CVS Administrator has created and set up the module directory on the CVS server.

Checking out an existing CVS module

Working with Branches