git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* egit problem with sym linked eclipse project dirs
@ 2009-01-13 20:00 Stephen Bannasch
  2009-01-13 21:37 ` Robin Rosenberg
  0 siblings, 1 reply; 11+ messages in thread
From: Stephen Bannasch @ 2009-01-13 20:00 UTC (permalink / raw)
  To: git; +Cc: Scott Cytacki

To hack around Eclipse's problem with projects in nested directories 
I clone a repo and then create a new top-level dir that just has 
symbolic links to all the project directories.

However when I Team/Share with git using egit the resources become 
untracked when displayed in Eclipse -- they still are tracked however 
when I check from the command line.

---- more details ----

using v0.4.0.200901041117 of egit

I've got a large dir structure in a git repo in which there are many 
eclipse projects at different levels of the tree.

However Eclipse doesn't work with projects at different levels in a 
nested dir structure (bad Eclipse) -- see: Eclipse bug: 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=35973

When we work with these projects with svn we checkout each one 
individually into it's own dir to create the flat hierarchy Eclipse 
needs.  Updating all these separate projects takes forever -- at 
least compared to using Git.

I created a Ruby script to create a new dir named 'workspace' at the 
top level of a checkout with symbolic links to all the enclosed 
directories that have a .project file inside them.

http://svn.concord.org/svn/projects/trunk/common/flatten_projects.rb

or here in the git mirror:

http://gitorious.org/projects/otrunk-examples/repos/mainline/blobs/raw/5c5ca6ff830f4ad3e4d427df92c1a5dff64831b5/flatten_projects.rb

(warning: repos are public but very big)

The result is a dir: workspace/ that emulates the flat project space 
that Eclipse needs:

   http://gist.github.com/4658 (a bunch of these are legacy projects)

Then I open Eclipse, switch to a new Workspace, select the 
newly-created 'workspace' dir and import the projects to work on.

This works fine for Eclipse. The projects build and reference each other.

But when I then turn on the team/sharing/git for each project ...

The operation completes -- the git decorator appears showing [Git @ master] ...

but the files are all untracked.

Screenshots showing the sequence after importing just 7 projects:

   apple-support, framework, frameworkview, otrunk, swing, thirdparty-jars

share projects:
   http://skitch.com/stepheneb/bbnqf/skitched-20090113-144412

select git:
   http://img.skitch.com/20090113-peu5y38a1yqm4kfqasf6hh9r9t.png

iterate through each project:
   http://img.skitch.com/20090113-k6wf8xgs2bc4ehy9siscdyteqr.png
   http://img.skitch.com/20090113-jughm7eatnuum43gfuedmctrw5.png

showing untracked files on master branch:
   http://skitch.com/stepheneb/bbnqc/skitched-20090113-144646

However from the command line git shows the appropriate untracked 
files after an Eclipse build:

$ git status
# On branch master
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#	java/core/apple-support/bin/
#	java/core/framework/lib/
#	java/core/frameworkview/lib/
#	java/core/swing/lib/
#	java/otrunk/otrunk/lib/
#	java/thirdparty/phet-simulations-java/simulations/cck/cck
#	rails/portal/portal
#	workspace/

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-03-18 21:12 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-13 20:00 egit problem with sym linked eclipse project dirs Stephen Bannasch
2009-01-13 21:37 ` Robin Rosenberg
2009-01-13 23:27   ` Stephen Bannasch
2009-01-23  1:56     ` Stephen Bannasch
2009-01-23 21:33       ` Robin Rosenberg
2009-03-11 22:17         ` [EGIT RFC PATCH(was Re: egit problem with sym linked eclipse project dirs)] Add some support for symlinked projects Robin Rosenberg
2009-03-12  2:57           ` Stephen Bannasch
2009-03-12  6:56             ` Robin Rosenberg
2009-03-18 16:02               ` Stephen Bannasch
2009-03-18 21:09                 ` Robin Rosenberg
2009-03-18 21:10                 ` Robin Rosenberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).