Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Problems maintaining directory structure in a new project
Problems maintaining directory structure in a new project [message #759687] Tue, 29 November 2011 15:44 Go to next message
Amanda  is currently offline Amanda Friend
Messages: 2
Registered: November 2011
Junior Member
I'm working with someone else on a collaborative project (using git), and I've pulled the most recent version from the repository. I'm now trying to figure out how to make Eclipse work using the current directory structure and am having a few problems. The way the code is set up now, there is a directory called PAD which contains .git and a 'code' which has two sub-directories: src and test. Whenever I create a new Java project, though, it automatically creates a new, separate directory, which is not what I want. Is there any way for me to view/edit/run this pre-existing code within Eclipse without changing the directory structure?
Re: Problems maintaining directory structure in a new project [message #759701 is a reply to message #759687] Tue, 29 November 2011 16:58 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 29-Nov-11 08:44, Amanda wrote:
> I'm working with someone else on a collaborative project (using git),
> and I've pulled the most recent version from the repository. I'm now
> trying to figure out how to make Eclipse work using the current
> directory structure and am having a few problems. The way the code is
> set up now, there is a directory called PAD which contains .git and a
> 'code' which has two sub-directories: src and test. Whenever I create a
> new Java project, though, it automatically creates a new, separate
> directory, which is not what I want. Is there any way for me to
> view/edit/run this pre-existing code within Eclipse without changing the
> directory structure?

Like you, I'm also not using eGit.

Based on what you've said, I'm not totally certain where your problem
lies, but I can offer this exhaustive treatment of a Git lifecycle
including Eclipse. I think you'll find your answer by reading a bit of
the first of it.

http://www.javahotchocolate.com/tutorials/git-eclipse.html

Hope this helps. Sorry I don't have the time to be more specific.
Re: Problems maintaining directory structure in a new project [message #759729 is a reply to message #759701] Tue, 29 November 2011 19:05 Go to previous message
Amanda  is currently offline Amanda Friend
Messages: 2
Registered: November 2011
Junior Member
Thanks! I got it working. I was able to copy a .project and .classpath from another project, modify them, and move them into the directory of the project so that Eclipse recognizes it as a project. Thanks for the link - it got me going in the right direction!
Previous Topic:getenv works but getProperty does not
Next Topic:TODO tags from java/javascript files not showing in Tasks view
Goto Forum:
  


Current Time: Wed Apr 24 20:44:39 GMT 2024

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

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

Back to the top