title: how to use Jenkins parameter in Ant's build.xml file
body: <p>I want Ant to replace a token in a file with the build number from Jenkins.</p>
  
  <p>I have a project that contains build.xml file with several tasks including:</p>
  
  <pre><code>&lt;replace file="${web.dir}\index.html" token="@build@" value="${build_num}"/&gt;
  </code></pre>
  
  <p>the "value" should somehow be resolved to the build number in Jenkins.</p>
  
  <p>I 
  In Jenkins, in build configureation -> ant -> advanced i set the following under properties:
  first: build_num=$build , second: build_num=${build}</p>
  
  <p>Neither worked , "$build" or "${build}" just appeared as the value instead of the token.</p>
  
  <p>Anyone knows how to do it?</p>
  
  <p>Thanks,
  N</p>