Skip to main content



      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 10:44 Go to next message
Eclipse UserFriend
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 11:58 Go to previous messageGo to next message
Eclipse UserFriend
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 14:05 Go to previous message
Eclipse UserFriend
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: Sat Jul 05 12:29:39 EDT 2025

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

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

Back to the top