"<exec excultable="c:\myExe.exe"/>"
을 실행하면 내 개미가 중지되었으며, 결과 코드는 단지 "<message priority="error"><![CDATA[Result: 128]]></message>"
입니다. 그 의미는 모르겠다.Ant exec의 의미 결과 : 012
다음과 같은 정보를 검색하려고했습니다. 오류 코드 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 파일)입니다.이 파일을 두 번 클릭하면 제대로 실행될 수 있으며 콘솔에서 단위 테스트 결과를 인쇄 할 수 있습니다. CMD에서 "--gtest_output = " xml : @ {reportfile} ""또한 콘솔에 단위 테스트 결과를 인쇄하고 단위 테스트 보고서 (.xml 파일)를 출력 할 수 있습니다. 그리고 다른 .exe 파일을 변경했습니다. "gtest.exe"대신에, 그것은 역시 적절합니다. 그래서, 내가 틀린 곳인지 모르겠습니다.
이 문제를 해결하는 데 필요한 정보가 충분하지 않습니다 .... 명령 줄에서 "C : \ myExe.exe"명령을 실행하면 어떻게됩니까? 다른 말로하면 ANT 외부에서 실행할 때? –
@ MarkO'Connor가 맞습니다. 여기에 많은 정보를 제공하지 않으 셨습니다. – 7dr3am7