Confirmed users
355
edits
Nalexander (talk | contribs) |
Nalexander (talk | contribs) |
||
| Line 93: | Line 93: | ||
If you want to use Eclipse: | If you want to use Eclipse: | ||
* Install | * Install Eclipse and the SDK plugin, as described in the Android SDK page. | ||
* Run these in your | * 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 > | * Open Eclipse, choose <tt>File > Import... > General > Existing Projects into Workspace</tt>, and specify your git repository directory. | ||
* Correct formatting: <tt>Preferences > Java | * 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 | ||