title: pass arguments to java through ant
body: <p>I want to pass command line arguments to my java program that is invoked through a fake ant (we have our own ant script in perl which at some point calls the actual ant). So what I want to do is invoke my program like this : </p>
  
  <blockquote>
    <p><code>./ant program_name arg1 arg2</code></p>
  </blockquote>
  
  <p>Right now I have an ant target for my program but instead of passing the arguments from the command line I am hard-coding them into the build file like this :</p>
  
  <blockquote>
    <p><code>&lt;arg line="arg1 arg2"/&gt;</code></p>
  </blockquote>
  
  <p>Any ideas on how can I use variables in the build file and load them from the command line arguments and then use them in my java program ?</p>