title: How to pass multiple parameters to a target in Ant?
body: <p>I have this dummy target:</p>
  
  <pre><code>&lt;mkdir dir="${project.stage}/release 
  &lt;war destfile="${project.stage}/release/sigma.war"&gt;
      ...
      ...
    &lt;/war&gt;
  </code></pre>
  
  <p>What I want to do is provide two parameters say "abc" &amp; "xyz" which will replace the word <strong>release</strong> with the values of abc and xyz parameters respectively.</p>
  
  <p>For the first parameter say abc="test", the code above will create a <strong>test</strong> directory and put the war inside it.Similarly for xyz="production" it will create a folder <strong>production</strong> and put the war file inside it.</p>
  
  <p>I tried this by using</p>
  
  <pre><code>&lt;antcall target="create.war"&gt;
      &lt;param name="test" value="${test.param.name}"/&gt;
      &lt;param name="production" value="${prod.param.name}"/&gt;
  &lt;/antcall&gt;
  </code></pre>
  
  <p>in the target which depends on the dummy target provided above.
  Is this the right way to do this.I guess there must be some way to pass multiple parameters and then loop through the parameters one at a time.</p>