title: Passing variables to arg in Ant Script
body: <p>I've the following Ant command. I need to pass a variable <code>{merged.folder}</code> to the arg line. This value comes from a property file. But it is not resolving that variable. Is there any way to do this. Can you please help me?</p>
  
  <pre><code>&lt;java fork="true" dir="${shrinksafe.util.path}/buildscripts" classname="org.mozilla.javascript.tools.shell.Main"&gt;
      &lt;arg line="releaseDir=${merged.folder}" /&gt;
      &lt;classpath&gt;
          &lt;pathelement location="${shrinksafe.util.path}/shrinksafe/js.jar" /&gt;
          &lt;pathelement location="${shrinksafe.util.path}/shrinksafe/shrinksafe.jar" /&gt;
          &lt;pathelement path="${java.class.path}" /&gt;
      &lt;/classpath&gt;
  &lt;/java&gt;
  </code></pre>