"<exec excultable="c:\myExe.exe"/>"
を実行するとantが停止しました。結果コードは"<message priority="error"><![CDATA[Result: 128]]></message>"
です。その意味はわかりません。Ant execの意味は何ですか?結果:128
私はいくつかの情報を検索しようとしました:エラーコード128 ---そのようなexeファイルはありませんが、私はしていません。 何が意味を説明するのに役立つだろうか?私は<exec>
を実行
おかげ
Oh sorry.
More info:
<macrodef name="gtest-layer-macro">
<attribute name="execfile"/>
<attribute name="layerpath" default=""/>
<attribute name="outputDir" default="${basedir}/${reports}/gtest"/>
<attribute name="reportfile" default="@{outputDir}/gtest_report.xml"/>
<sequential>
<check-layer-path layerpath="@{layerpath}"/>
<if>
<and>
<length string="@{execfile}" when="gt" length="0" trim="true"/>
<available file="@{execfile}"/>
</and>
<then>
<var name="##report.dir##" unset="true"/>
<dirname property="##report.dir##" file="@{reportfile}"/>
<mkdir dir="${##report.dir##}"/>
<exec executable="@{execfile}">
<arg value="--gtest_output="xml:@{reportfile}""/>
</exec>
</then>
</if>
</sequential>
</macrodef>
は、 ":128、エラー結果" があります。
"@ {execfile}"はgtest.exeファイル(モジュールをテストするためのexeファイル)です。ダブルクリックすると正しく実行され、ユニットテスト結果がコンソールに出力されます。 "--gtest_output = " xml:@ {reportfile} ""のCMDでは、ユニットテスト結果をコンソールに出力し、ユニットテストレポート(.xmlファイル)を出力することもできます。別の.exeファイルを変更しました"gtest.exe"の代わりに、それは正しいです。 私はどこが間違っているのか分かりません。
この問題のトラブルシューティングに必要な情報が不足しています....コマンドラインから "C:\ myExe.exe"コマンドを実行するとどうなりますか?言い換えれば、あなたはANTの外でそれを実行しますか? –
@ MarkO'Connorはそうです、あなたはここにたくさんの情報を与えているわけではありません。 – 7dr3am7