This article describes how to check out
a Websphere Portlet Factory project from a subversion repository (SVN).
For best practices about what should be kept on a SCM such as subversion
refer to the following Websphere Portlet Factory wiki page
Files
and Folders for source control
PROBLEM
In contrast with CVS, when you checkout a WebSphere Portlet Factory project
from SVN, the resources are not merged with the ones from WebSphere Portlet
Factory template. The result is that you have only the resources from SVN
in your workspace and all the other resources are missing. This article
describes a solution to this problem using subeclipse as eclipse plug in
for SVN. See
http://subclipse.tigris.org
for more details.
1. Create a Subversion connection in your environment.
2. Create a new WebSphere Portlet Factory project.
3. Right click the project and select
Team >
Share
Project.
4. Select
SVN and the appropriate connection configuration.
5. When prompted to specify the folder name in SVN, select
Use
project name as folder name or specify another name if you have
created in your workspace a project with a different
name.
Note: You must specify the same directory to connect
to a project that is already defined in the SVN repository. If you specify
a different location, a new project is created on SVN rather than connecting
to the existing one.
6. Select
Next and
Finish.
7. Select
Yes when alerted that the specified folder
already exists.
The result is that you have all resources retrieved from SVN and merged
in your workspace. If you switch to the synchronization view you can see
the difference between your local copy and the remote one.