title: Ant var and property scope
body: <p>I have a main build script that calls various targets.  One of these targets needs to store a value and another target needs to display it.  Obviously this is not working so I think it may be related to scope.  I've tried var, property, and declaring the property outside of target1.  Since var seems to be mutable, it looks like I need to use it instead, but each time my output is empty.</p>
  
  <p>Main script</p>
  
  <pre><code>&lt;antcall target="target1"/&gt;
  &lt;antcall target="display"/&gt;
  </code></pre>
  
  <p>In target1:</p>
  
  <pre><code>&lt;var name="myVar" value="${anotherVar}"/&gt;
  </code></pre>
  
  <p>In display:</p>
  
  <pre><code>&lt;echo&gt;${myVar}&lt;/echo&gt;
  </code></pre>