title: Emma does not generate coverage.ec
body: <p>I setup Emma and it used to work for me. Then we had source code changes and now it doesn't generate <code>coverage.ec</code> at all. It does generate <code>coverage.em</code>. 
  Near the end of testing, it has error messages: </p>
  
  <pre><code>[exec] INSTRUMENTATION_CODE: 0
  [echo] Downloading coverage file into project directory...
  [exec] remote object '/sdcard/coverage.ec' does not exist
  
  BUILD FAILED
  /var/lib/jenkins/android-sdk-linux_x86/tools/ant/build.xml:1056: exec returned: 1.
  </code></pre>
  
  <p>Line 1056 of build.xml is </p>
  
  <pre><code>"{adb}" failonerror="true".
  </code></pre>
  
  <p>I see that I do have <code>coverage.em</code> on the desktop, which means my code are instrumented.  </p>
  
  <p>the command I use under the \test is</p>
  
  <pre><code>ant emma debug install test
  </code></pre>
  
  <p>This worked for me before.  Running code coverage always crashes for me, usually near the end of the unit test, but it'd always get me some coverage. Now it crashes out and doesn't produce <code>coverage.em</code>.</p>
  
  <p>I also tried to access <code>/sdcard/</code> and it's perfectly accessible and writable.</p>
  
  <p>This has blocked me for days, any input would be much appreciated. I am also new to all this Android, Ant and Emma, so thanks!!</p>
  
  <p><strong>Update</strong>:
  I just cleaned up the environment and ran the command again.Now coverage.em is no longer generated either. Which tells me the source code are not instrumented. But the command I used above should instrument project, its test project, install and start test. I didn't change emma def in build.xml except to change the coverage.ec location to /sdcard/coverage.ec. This is because by default it goes to /data/data, and I don't have permission to access data/data on this phone</p>
  
  <p>I am using r15 of Android SDK, and the default build.xml. I only changed the path to coverage.ec to /sdcard/coverage.ec.  To run instrumentation </p>
  
  <pre><code> Go to main_project
   $andriod update project -p .
   Go to main_prject\test
   $android update project -m ../ -p .
   To start code code
   $ant emma debug install test
  </code></pre>
  
  <p>It generated main_project-instrumented.apk and test_project-debug.apk. Both are installed and I can see it executes testing.</p>