Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » dynamic project + cvs
dynamic project + cvs [message #139702] Tue, 20 September 2005 16:04 Go to next message
Felix Geller is currently offline Felix GellerFriend
Messages: 7
Registered: July 2009
Junior Member
hi all, i'm trying to share my project with others that work on the same code. we already have a sourceforge based cvs server, but my problem now is that when i share the project also the dotfiles get shared (and checked out) which obviously breaks the project on other setups (with other locations for the runtime etc). is there a way to exclude files from being shared? or what other advices do you have to share a dynamic project properly :)
thanks in advance for any help!

fg
Re: dynamic project + cvs [message #139834 is a reply to message #139702] Tue, 20 September 2005 21:19 Go to previous message
Eclipse UserFriend
Originally posted by: laurentd75___no.sp_am.yahoo.fr

"Felix Geller" <fgeller@wpi.edu> wrote:

> hi all, i'm trying to share my project with others that work on the same
code.
> we already have a sourceforge based cvs server
> but my problem now is that when i share the project also the dotfiles get
shared
<CUT>
> is there a way to exclude files from being shared?

Hi Felix,

You can explicitly tell CVS not to share specific files by creating a
".cvsignore" plain text file that lists filenames, filename patterns or even
whole directories to be excluded. You can even have a .cvsignore file in
each directory from which you want some files to be excluded.

Eclipse has built-in features to automate the creation of the .cvsignore
file(s):

In the navigator or package explorer view, just select the file (or files)
you want to exclude, then right-click your mouse and select the "Team > Add
to .cvsignore" menu option.

A dialogue will be displayed, where you can select either to exclude the
named file(s) or enter a specific pattern. After you validate your choice,
Eclipse will automatically create the .cvsignore file for you.

PLEASE NOTE THOUGH - this must be done BEFORE you first commit your project
to CVS, so the files to be excluded have not been published to the CVS
repository yet.

As to "best practices", I would think it only makes sense to exclude the
".classpath" file from CVS control, *not* the ".project" ".runtime" and
".wtpmodules" ones, because the latter can usually be identical across the
whole team. The only differences in setup across your team would only
concern classpath entries such as the JRE associated to the project.

So, in your case, you would first create your dynamic Web project on your
PC, then right-click on the ".classpath" file, select "Team > add to
..cvsignore" and click OK. You would then proceed to hare your project and
commit all files to CVS. Next, when other developers in your team check out
the project from CVS, they will not get any of the dot files since they have
not under CVS control.

However, since the project they check out does not contain any ".classpath
file", they will not be able to use the project because of build errors.

The solution is to actually mak a copy of the ".classpaht" file renaming it
as "dot_classpath" BEFORE you commit your project to CVS, so this copy WILL
be included in CVS. When other team members check out the project they can
then copy the "dot_classpath" file and rename it back to its original name,
*and* then select the "add to .cvsignore" option on it to excluded it from
CVS control. They then will have their own local copies of the ".classpath"
file which they can alter as they wish depending on their particular
workspace settings.

Obviously, if there are setup variations affecting the server runtime, you
can also choose to exclude the ".runtime" file from CVS control using the
same method.

Hope this helps,

Laurent
Previous Topic:Problem with deployment of dependent projects
Next Topic:where and how to get RDB component for WST
Goto Forum:
  


Current Time: Fri Apr 26 02:47:16 GMT 2024

Powered by FUDForum. Page generated in 0.03026 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top