CloudServices/NativeSync: Difference between revisions

Jump to navigation Jump to search
Line 93: Line 93:
If you want to use Eclipse:
If you want to use Eclipse:


* Install it and the SDK plugin, as described in the Android SDK page.
* Install Eclipse and the SDK plugin, as described in the Android SDK page.
* Run these in your repo:
* Run these in your git repository directory (don't forget to checkout the *develop* branch):


  mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo
  mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo
  mvn -DdownloadJavadocs=true -DdownloadSources=true eclipse:eclipse
  mvn -DdownloadJavadocs=true -DdownloadSources=true eclipse:eclipse


* Open Eclipse, choose File > Import… Existing Project, pick your repo dir.
* Open Eclipse, choose <tt>File > Import... > General > Existing Projects into Workspace</tt>, and specify your git repository directory.
* Correct formatting: <tt>Preferences > Java:Code style:Formatter, Edit…, set profile name to <tt>Mozilla</tt>, set <tt>Tab policy</tt> to <tt>Spaces only</tt> change both <tt>Indentation size</tt> and <tt>Tab size</tt> to 2, and check <tt>Align fields in columns</tt>.
* Correct formatting: <tt>Preferences > Java > Code style > Formatter > Edit...</tt>, set profile name to <tt>Mozilla</tt>, set <tt>Tab policy</tt> to <tt>Spaces only</tt> change both <tt>Indentation size</tt> and <tt>Tab size</tt> to 2, and check <tt>Align fields in columns</tt>.


Install the project and classpath, making sure to update the path values in both files:
Install the project and classpath files, making sure to update the path values in both files:


  cp example.project .project
  cp example.project .project
Confirmed users
355

edits

Navigation menu