Search code examples
androideclipsegitdependenciesegit

Best git structure for importing android dependent project with egit in eclipse


How can I easily import the whole reposition from git (bitbucket) using EGit in Eclipse that contains 3 Eclipse projects (one end-project and two library projects) into default git folder, if my Eclipse workspace folder already contains library projects?

After warning on the picture:

import projects existance

My libraries projects are not found because they are in a different folder than the library projects. I would like to avoid putting my git local reposition in eclipse workspace or changing project.properties to link to the absolute path of libs.

missing lib projects

folder structure


Solution

  • or changing project.properties to link to absolute path of libs.

    That is actually a good solution, since you can declare a library:

    linked resource target

    That should help allowing you to import only TwistedCircle, because its properties would refer to other projects relative to the project or the workspace folder.