title: Ant update version number in file but not in script
body: <p>I'm currently working on a script that automatically increments version number. The version is in <code>major.minor.build</code> format so I can't use <code>buildnumber</code>. I've managed to increment the property in file like this:</p>
  
  <pre><code>&lt;propertyfile file="./build.properties"&gt;
    &lt;entry key="ver.minor" type="int" operation="+" value="1" pattern="0"/&gt;
  &lt;/propertyfile&gt;
  </code></pre>
  
  <p>This works but ver.minor is not incremented in script. <code>&lt;property file="build.properties"/&gt;</code> also doesn't help.</p>