2 つの値が等しいかどうかを比較するアリのタスクがあります。2 つの値が等しくない場合は、失敗したいと思います。
<condition property="versionDoesNotMatch">
<not>
<equals arg1="applicationVersion" arg2="releaseNotesVersion"/>
</not>
</condition>
<fail if="versionDoesNotMatch" message="Version of Application and Release notes does not match."/>
Ant の出力によると、値 releaseNotesVersion と applicationVersion の両方の値は同じ1.7 ですが、条件は常に true と評価されます。これは、notが意味するため、数値が等しくないことを意味します。ant がこれらの種類の値を比較するのに問題があるのだろうか?