我有一个ant任务,需要比较两个值是否相等。如果这两个值不相等,我想要任务失败:
<condition property="versionDoesNotMatch">
<not>
<equals arg1="applicationVersion" arg2="releaseNotesVersion"/>
</not>
</condition>
<fail if="versionDoesNotMatch" message="Version of Application and Release notes does not match."/>
根据蚂蚁输出结果,releaseNotesVersion和applicationVersion这两个值都是1.7,但是该条件语句总是被判断为真 - 这意味着由于not,这两个数字不相等。这让我想知道,蚂蚁在比较这种类型的值时是否会有麻烦?