Sharing Android + Eclipse via SVN?

I am very new to Eclipse (Galileo, Eclipse IDE for Java Developers) and working on my first Android application, but used SVN for many other projects and developments. Last night, I took my first crack, pushing a new source into a shared repository (at work), and then pulled it back at home.

Based on the SO question / answer, I ignored the bin and gen folders, but added the rest. When I returned home, I hoped that it would be as simple as pointing the eclipse to a recently loaded source tree.

I tried to set the workspace (requested when starting the eclipse) to the exact folder containing the entire source. Nothing appeared. It was as if I started fresh, regardless of all the sources and files in the workspace folder.

Then I thought, maybe I need to open the "project" file so that everything is in order. Opening the .project file gave the contents of this file in the eclipse XML editor.

What am I missing here? Are project metadata not stored in the source tree? Should I create project metadata on every machine that receives a working copy of the source? Is this something wrong with my Eclipse home installation? Can someone give me an overview of how they (successfully) do this?

+6
java android eclipse svn
source share
1 answer

You should be able to do this as you have tried. Make sure you have the Android Development Tools (Android eclipse plugin) installed with the Android SDK and make sure you configure ADT before opening the project.

Not checking in the bin directory makes sense to me, but I am checking the gen folder and have no problems.

Here is what I do to open a project from SVN if the source is already on the machine:

  • Open eclipse
  • Click File-> Import
  • Choose General> Existing Projects in the Workspace.

Or you can also do this:

  • Open eclipse
  • File → Import
  • Choose SVN → Verification Projects from SVN
  • Follow the steps to get from SVN
+7
source share

All Articles