title: Ant: Check if two numbers are equal
body: <p>I have an ant task which should compare two values for equality. If the two values are not equal, I'd like to fail:</p>
  
  <pre><code>&lt;condition property="versionDoesNotMatch"&gt;
    &lt;not&gt;
      &lt;equals arg1="applicationVersion" arg2="releaseNotesVersion"/&gt;
    &lt;/not&gt;
  &lt;/condition&gt;
  &lt;fail if="versionDoesNotMatch" message="Version of Application and Release notes does not match."/&gt;
  </code></pre>
  
  <p>According to the ant output, both values, releaseNotesVersion and applicationVersion have the same value <strong>1.7</strong> but the condition always evaluates to true - which because of the <strong>not</strong> would mean, that the numbers are not equal. Which makes me wonder, if ant would have troubles comparing those kind of values ?</p>