title: Jacoco: unable to read execution data file, ant task
body: <p>Info:
  java version: 1.8.0_66
  ant version: 1.9.6</p>
  
  <p>What I want to do:</p>
  
  <p>Provide a code coverage report for the server's code that is running on AWS windows 2k12 server.</p>
  
  <p>What I did:</p>
  
  <ul>
  <li>Stop the server completely. </li>
  <li>Put jacocoagent.jar into server's bin folder. Note: this is inside Program Files folder</li>
  <li>Append -javaagent settings to JAVA_OPTS that is used during server start up. </li>
  <li>Start the server.</li>
  <li>Run my sample test from my local laptop. </li>
  <li>Stop the server completely. This produced a 184kb jacoco.exec.</li>
  <li>Copied my build.xml to the same directory where the jacoco.exec is located. C:/path/to/exec/jacoco.exec</li>
  <li>Copied jacocoant.jar to C:/path/to/jacocoant.jar</li>
  <li>cd into C:/path/to/exec/ and run command "ant"</li>
  </ul>
  
  <p>Result:</p>
  
  <p>Got error unable to read execution data file C:/path/to/exec/jacoco.exec</p>
  
  <p>Build.xml:</p>
  
  <pre><code>&lt;project name="Example" default="rebuild" xmlns:jacoco="antlib:org.jacoco.ant"&gt;
  
  &lt;description&gt;
    Example Ant build file that demonstrates how a JaCoCo coverage report
    can be itegrated into an existing build in three simple steps.
  &lt;/description&gt;
  
  &lt;property name="result.dir" location="." /&gt;
  &lt;property name="result.classes.dir" location="${result.dir}/path/to/classes" /&gt;
  &lt;property name="result.report.dir" location="${result.dir}/report" /&gt;
  &lt;property name="result.exec.file" location="${result.dir}/jacoco.exec" /&gt;
  
  &lt;!-- Step 1: Import JaCoCo Ant tasks --&gt;
  &lt;taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml"&gt;
      &lt;classpath path="../jacocoant.jar" /&gt;
  &lt;/taskdef&gt;
  
  &lt;target name="clean"&gt;
      &lt;delete dir="${result.report.dir}" /&gt;
  &lt;/target&gt;
  
  &lt;target name="report"&gt;
      &lt;!-- Step 3: Create coverage report --&gt;
      &lt;jacoco:report&gt;
  
          &lt;!-- This task needs the collected execution data and ... --&gt;
          &lt;executiondata&gt;
              &lt;file file="${result.exec.file}" /&gt;
          &lt;/executiondata&gt;
  
          &lt;!-- the class files and optional source files ... --&gt;
          &lt;structure name="JaCoCo Code Coverage Report"&gt;
              &lt;classfiles&gt;
                  &lt;fileset dir="${result.classes.dir}" &gt;
                      &lt;/fileset&gt;
              &lt;/classfiles&gt;
              &lt;sourcefiles encoding="UTF-8"&gt;
                  &lt;fileset dir="${src.dir}" /&gt;
              &lt;/sourcefiles&gt;
          &lt;/structure&gt;
  
          &lt;!-- to produce reports in different formats. --&gt;
          &lt;html destdir="${result.report.dir}" /&gt;
          &lt;csv destfile="${result.report.dir}/report.csv" /&gt;
          &lt;xml destfile="${result.report.dir}/report.xml" /&gt;
      &lt;/jacoco:report&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p></p>
  
  <p>I am not sure if the problem is with exec file (it is corrupted maybe) or is with my entire setup. 
  Any help to identify and help solving the problem is appreciated!!!</p>
  
  <p>Thanks!</p>