title: Ant script passing arguments to Batch file
body: <p>I have an Ant script where I need to call a batch script as follows:</p>
  
  <pre><code>&lt;exec dir="${basedir}\work_internal\${platform}" executable="cmd.exe"&gt;
            &lt;arg line ="/c example.bat 'C:\work_internal\${platform}' 'revn=120 SPECIAL_OBJS='a b''" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>I need to pass the arguments to example.bat, first argument is a directory and second argument is 'revn=120 SPECIAL_OBJS='a b'', with SPECIAL_OBJS='a b' where 'a b' must be in quotes. But when it calls to Bat script, it discards the quotes around 'a b' so in the second argument it is interpreted as revn=120 SPECIAL_OBJS= a b. </p>
  
  <p>How can make it read like  revn=120 SPECIAL_OBJS="a b"?</p>