title: How do I retrieve Composer via Ant?
body: <p>I'm trying to get make my Ant script retrieve Composer for me. <a href="http://getcomposer.org/" rel="noreferrer">Composer</a> is a dependancy manager for PHP.  <a href="http://getcomposer.org/doc/00-intro.md#installation-nix" rel="noreferrer">According to the doc</a> one needs to run this command: "curl -s <a href="https://getcomposer.org/installer" rel="noreferrer">https://getcomposer.org/installer</a> | php" which will download Composer.phar into the directory I'm in. This works as intended when running from a terminal.</p>
  
  <p>How do I setup the Ant build file for this? So far I've got this segment for the "composerget" target, but it's doesn't save the file, only output it in my command shell:</p>
  
  <pre><code>....    
  &lt;target name="composerget" description="Composer update dependencies"&gt;
      &lt;exec executable="curl"&gt; 
          &lt;arg line="-s" /&gt;
              &lt;arg line="https://getcomposer.org/installer"/&gt;
          &lt;arg line="| php" /&gt;
      &lt;/exec&gt;
    &lt;/target&gt;
  ....
  </code></pre>
  
  <p>Any help is greatly appeciated.</p>