title: ANT: loadresource task called twice
body: <p>I have a very basic ant task which is behaving weirdly.</p>
  
  <p>It is not more than this build.xml without any dependencies:</p>
  
  <pre><code>&lt;project name="Test" default="recreate-via-http" &gt;
  
      &lt;target name="recreate-via-http"&gt;
          &lt;loadresource property="result" &gt;
              &lt;url url="http://someserver/somecall.php"  /&gt;           
          &lt;/loadresource&gt;  
          &lt;echo&gt;${result}&lt;/echo&gt;
      &lt;/target&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>The weird thing is, that this is executed twice while everything else in the ant script is only run once.</p>
  
  <p>That means, that http-call arrives twice on the server. i even captured the http traffic using wireshark and it confirms that the http-call is done twice.</p>
  
  <p>They even seem to be called exactly at the same time down to the millisecond.</p>
  
  <p>The echo is shown only once in the consoleoutput.</p>
  
  <p>The ant script is launched via eclipse built-in ant, though the problem also persists when called from the windows command line with the standalone ant. So I don't think it is an IDE or target-chain problem.</p>
  
  <p>Thanks for any help on this!</p>
  
  <p>EDIT: for what it's worth, here is a link to the ant task, which i have reported.
  <a href="https://issues.apache.org/bugzilla/show_bug.cgi?id=51762" rel="nofollow">https://issues.apache.org/bugzilla/show_bug.cgi?id=51762</a></p>