CloudServices/NativeSync: Difference between revisions

Line 100: Line 100:


* Open Eclipse, choose File > Import… Existing Project, pick your repo dir.
* Open Eclipse, choose File > Import… Existing Project, pick your repo dir.
* Correct formatting: Preferences > Java:Code style:Formatter, Edit…, change name to "Mozilla", change both indentation values to 2, tab policy = Spaces only, check "Align fields in columns".
* 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>.


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


  cp example.project .project
  cp example.project .project
  cp example.classpath .classpath
  cp example.classpath .classpath


You may need to set <tt>M2_REPO</tt> (for example, as described at [[http://www.mkyong.com/maven/how-to-configure-m2_repo-variable-in-eclipse-ide/]]) to something like <tt>~/.m2/repository</tt>.
You may need to set <tt>M2_REPO</tt> (for example, as described at [http://www.mkyong.com/maven/how-to-configure-m2_repo-variable-in-eclipse-ide/]) to something like <tt>~/.m2/repository</tt>.


To run the test suite under Eclipse, first configure the test suite launcher, under <tt>Preferences > Run/Debug > Launching > Default Launchers</tt>.  Set the Debug and Run launchers to <tt>Android JUnit Test Launcher</tt>.  To run the test suite, select the <tt>android-sync</tt> project and execute <tt>Run > Run As ... > JUnit Test</tt>.
To run the test suite under Eclipse, first configure the test suite launcher, under <tt>Preferences > Run/Debug > Launching > Default Launchers</tt>.  Set the Debug and Run launchers to <tt>Android JUnit Test Launcher</tt>.  To run the test suite, select the <tt>android-sync</tt> project and execute <tt>Run > Run As ... > JUnit Test</tt>.
Confirmed users
355

edits