title: what's meaning of Ant exec Result:128
body: <p>my ant was stoped when execute <code>"&lt;exec excultable="c:\myExe.exe"/&gt;"</code>,the result code is just <code>"&lt;message priority="error"&gt;&lt;![CDATA[Result: 128]]&gt;&lt;/message&gt;"</code>.I don't know what's meaning of that.</p>
  
  <p>I've tried to search some info like: error code 128---no such exe file,but I havn't.
  some one could help me to explain what's the meaning?</p>
  
  <p>Thanks</p>
  
  <pre><code>Oh sorry.
  More info:
  
  &lt;macrodef name="gtest-layer-macro"&gt;
      &lt;attribute name="execfile"/&gt;
      &lt;attribute name="layerpath" default=""/&gt;
      &lt;attribute name="outputDir" default="${basedir}/${reports}/gtest"/&gt;
      &lt;attribute name="reportfile" default="@{outputDir}/gtest_report.xml"/&gt;
      &lt;sequential&gt;
          &lt;check-layer-path layerpath="@{layerpath}"/&gt;
          &lt;if&gt;
              &lt;and&gt;
                  &lt;length string="@{execfile}" when="gt" length="0" trim="true"/&gt;
                  &lt;available file="@{execfile}"/&gt;
              &lt;/and&gt;
              &lt;then&gt;
                  &lt;var name="##report.dir##" unset="true"/&gt;
                  &lt;dirname property="##report.dir##" file="@{reportfile}"/&gt;
                  &lt;mkdir dir="${##report.dir##}"/&gt;
                  &lt;exec executable="@{execfile}"&gt;
                      &lt;arg value="--gtest_output=&amp;quot;xml:@{reportfile}&amp;quot;"/&gt;
                  &lt;/exec&gt;
              &lt;/then&gt;
          &lt;/if&gt;
      &lt;/sequential&gt;
  &lt;/macrodef&gt;
  </code></pre>
  
  <p>When I run the <code>&lt;exec&gt;</code>, there’s "error Result:128".</p>
  
  <p>The “@{execfile}” is a gtest.exe file(a exe file to test a module),it could run correctly when I double-click it,it could print the unit test result in the console;Run in the CMD with “--gtest_output=&quot;xml:@{reportfile}&quot;” is also could print the unit test result in the console,and output a unit test report(a .xml file).And I have changed another .exe instead of the “gtest.exe”,it’s right too.
  So,I don’t know where I’m wrong. </p>