Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse/CDT usage with CVS?
Eclipse/CDT usage with CVS? [message #158037] Tue, 15 November 2005 13:09 Go to next message
Eclipse UserFriend
Originally posted by: mark_2811.excite.com

Hi everyone,
I'm working to get my Eclipse/CDT environment checked into CVS so that I
can checkout my module and have all the necessary files there to startup
eclipse and get the identical environment (workspace with several
projects). I'm trying to figure out what Eclipse files are necessary to
checkin to CVS for this. I've noticed there is a hidden directory called
metadata that is 140Mb in size. Do I need to checkin this entire
directory?? Or are there only a few files needed?

Any suggestions are much appreciated.

Thanks,
Mark
Re: Eclipse/CDT usage with CVS? [message #158057 is a reply to message #158037] Tue, 15 November 2005 16:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: me2.nowhere.com

On Tue, 15 Nov 2005 18:09:07 +0000, Mark wrote:

> Hi everyone,
> I'm working to get my Eclipse/CDT environment checked into CVS so that I
> can checkout my module and have all the necessary files there to startup
> eclipse and get the identical environment (workspace with several
> projects). I'm trying to figure out what Eclipse files are necessary to
> checkin to CVS for this. I've noticed there is a hidden directory called
> metadata that is 140Mb in size. Do I need to checkin this entire
> directory?? Or are there only a few files needed?
>
> Any suggestions are much appreciated.

You don't *have to* include any files you don't want to. I wouldn't
include the metadata folder as it holds some of the eclipse settings that
you will change from time to time and if/when you restore that file from
CVS, your current setting will be replaced by the previous settings.

The next thing that you find is that an Eclipse CVS checking will attempt
to check in all the files under the top directory. .o files, etc. You
probably don't want to check these in either. I haven't figured out how
to stop this from happening, other than to do a good clean before the
checkin.

In general, you'll want to check in only *c, *.h, make and configure
files. That is the way I see it.
Re: Eclipse/CDT usage with CVS? [message #158060 is a reply to message #158037] Tue, 15 November 2005 17:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.dharty.com

Depends :~)

I tried with varying degrees of success to commit the "Workspace"
directory to my revision control system (P4). Most files you wont need,
but if you want to maintain an identical environment between team
members, you might need most of them. Some of the larger files are
remnants of indexing and parsing and can safely be excluded.

You will likely want to include all .xml and .prefs files. Also, any
..launch file in .metadata\.plugins\org.eclipse.debug.core\.launches if
you want to have a common set of external tools available from the IDE.

I'm, not sure about most of the files in
..metadata\.plugins\org.eclipse.core.resources, but I think that the
folders here inform the workspace what projects it contains.

I think you can safely exclude .index and .log files, but I'm not sure
about the .c and .cpp files.

There is a lot of cruft that I am sure you don't need, but you will
likely have to play by trial and error to get the right combo. Be sure
to shut down eclipse before commits to hopefully get any temp files
cleaned up.


Also, beware write only checkouts. Any workspace or project file in
CVS will most likely have to be checked out as read-write so Eclipse can
continue to operate correctly.

In the end, I only ended up with my launches and workingsets added to my
revision control. I added the .*project files, but they have to be
perpetually checked out (writeable).

Good luck and let me know if your experiences differ.

David




Mark wrote:
> Hi everyone,
> I'm working to get my Eclipse/CDT environment checked into CVS so that I
> can checkout my module and have all the necessary files there to startup
> eclipse and get the identical environment (workspace with several
> projects). I'm trying to figure out what Eclipse files are necessary to
> checkin to CVS for this. I've noticed there is a hidden directory called
> metadata that is 140Mb in size. Do I need to checkin this entire
> directory?? Or are there only a few files needed?
>
> Any suggestions are much appreciated.
>
> Thanks,
> Mark
>
Re: Eclipse/CDT usage with CVS? [message #158066 is a reply to message #158037] Tue, 15 November 2005 17:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.dharty.com

Also, forgot to mention,

I'd recommend starting with a new workspace, configure it to your
liking, add the necessary projects etc.

My current .metadata is only 14 megs, and files I checked in in the past
to maintain identical working environments were less than a meg.


Here's what I had added at one point to replicate my workspace, of
course some folders (eg project folders) may not exist in your
workspace, and all of the files here may not actually be necessary.
Your mileage may vary:


..metadata $ ls -aR
..:
.. .. .plugins version.ini

../.plugins:
.. org.eclipse.core.runtime
org.eclipse.jdt.ui org.eclipse.ui.workbench
... org.eclipse.debug.core
org.eclipse.team.cvs.ui org.eclipse.ui.workbench.texteditor
org.eclipse.cdt.make.ui org.eclipse.debug.ui org.eclipse.team.ui
org.eclipse.cdt.ui org.eclipse.jdt.core org.eclipse.ui
org.eclipse.core.resources org.eclipse.jdt.launching org.eclipse.ui.ide

../.plugins/org.eclipse.cdt.make.ui:
.. .. dialog_settings.xml

../.plugins/org.eclipse.cdt.ui:
.. .. dialog_settings.xml templates.xml

../.plugins/org.eclipse.core.resources:
.. .. .projects .root .safetable

../.plugins/org.eclipse.core.resources/.projects:
.. .. FlightSw

../.plugins/org.eclipse.core.resources/.projects/FlightSw:
.. .. .indexes .markers

../.plugins/org.eclipse.core.resources/.projects/FlightSw/.i ndexes:
.. .. history.index properties.index

../.plugins/org.eclipse.core.resources/.root:
.. .. .indexes 170.tree

../.plugins/org.eclipse.core.resources/.root/.indexes:
.. .. history.version properties.index properties.version

../.plugins/org.eclipse.core.resources/.safetable:
.. .. org.eclipse.core.resources

../.plugins/org.eclipse.core.runtime:
.. .. .settings

../.plugins/org.eclipse.core.runtime/.settings:
.. org.eclipse.debug.ui.prefs
org.eclipse.ui.editors.prefs
... org.eclipse.jdt.core.prefs
org.eclipse.ui.ide.prefs
org.eclipse.cdt.core.prefs org.eclipse.jdt.launching.prefs
org.eclipse.ui.prefs
org.eclipse.cdt.debug.core.prefs org.eclipse.jdt.ui.prefs
org.eclipse.ui.workbench.prefs
org.eclipse.cdt.ui.prefs org.eclipse.team.cvs.ui.prefs
org.eclipse.core.resources.prefs org.eclipse.team.ui.prefs

../.plugins/org.eclipse.debug.core:
.. .. .launches

../.plugins/org.eclipse.debug.core/.launches:
.. P4 Diff.launch Perforce Login.launch
... Perforce Edit.launch grep.launch

../.plugins/org.eclipse.debug.ui:
.. .. dialog_settings.xml launchConfigurationHistory.xml

../.plugins/org.eclipse.jdt.core:
.. .. variablesAndContainers.dat

../.plugins/org.eclipse.jdt.launching:
.. .. libraryInfos.xml

../.plugins/org.eclipse.jdt.ui:
.. .. dialog_settings.xml

../.plugins/org.eclipse.team.cvs.ui:
.. .. commitCommentHistory.xml dialog_settings.xml repositoriesView.xml

../.plugins/org.eclipse.team.ui:
.. .. syncParticipants.xml

../.plugins/org.eclipse.ui:
.. .. dialog_settings.xml

../.plugins/org.eclipse.ui.ide:
.. .. dialog_settings.xml

../.plugins/org.eclipse.ui.workbench:
.. .. dialog_settings.xml workbench.xml workingsets.xml

../.plugins/org.eclipse.ui.workbench.texteditor:
.. .. dialog_settings.xml





Mark wrote:
> Hi everyone,
> I'm working to get my Eclipse/CDT environment checked into CVS so that I
> can checkout my module and have all the necessary files there to startup
> eclipse and get the identical environment (workspace with several
> projects). I'm trying to figure out what Eclipse files are necessary to
> checkin to CVS for this. I've noticed there is a hidden directory called
> metadata that is 140Mb in size. Do I need to checkin this entire
> directory?? Or are there only a few files needed?
>
> Any suggestions are much appreciated.
>
> Thanks,
> Mark
>
Re: Eclipse/CDT usage with CVS? [message #158140 is a reply to message #158037] Wed, 16 November 2005 11:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mark_2811.excite.com

Thanks for the responses. Sounds like it isn't a simple thing to do.
Ideally I'd like to have all the necessary files in CVS so that you could
do a checkout into an empty directory, bring up Eclipse and have the same
environment as before. I figure there's got to be an easy way to do this??
Re: Eclipse/CDT usage with CVS? [message #158189 is a reply to message #158140] Wed, 16 November 2005 14:31 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse.dharty.com

well its not too hard, you could add all of your current .metadata
folder, but not all of those files are needed and I for one don't like
adding unnecessary files (140 megs worth) to my revision control.

If you started with a fresh workspace, added your projects and
configured the environment, I bet the .metadata directory would be much
smaller.

D

Mark wrote:
> Thanks for the responses. Sounds like it isn't a simple thing to do.
> Ideally I'd like to have all the necessary files in CVS so that you
> could do a checkout into an empty directory, bring up Eclipse and have
> the same environment as before. I figure there's got to be an easy way
> to do this??
>
>
Previous Topic:modal dialogs block help window
Next Topic:Parser: Variable Update Event
Goto Forum:
  


Current Time: Fri May 16 02:55:42 EDT 2025

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

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

Back to the top