title: Replacing all tokens based on properties file with ANT
body: <p>I'm pretty sure this is a simple question to answer and ive seen it asked before just no solid answers.</p>
  
  <p>I have several properties files that are used for different environments, i.e xxxx-dev, xxxx-test, xxxx-live</p>
  
  <p>The properties files contain something like:</p>
  
  <pre><code>server.name=dummy_server_name
  server.ip=127.0.0.1
  </code></pre>
  
  <p>The template files im using look something like:</p>
  
  <pre><code>&lt;...&gt;
     &lt;server name="@server.name@" ip="@server.ip@"/&gt;
  &lt;/...&gt;
  </code></pre>
  
  <p>The above is a really primitive example, but im wondering if there is a way to just tell ANT to replace all tokens based on the properties file, rather than having to hardcode a token line for each... i.e</p>
  
  <pre><code>&lt;replacetokens&gt;
     &lt;token key="server.name" value="${server.name}"/&gt;
     &lt;token key="server.ip" value="${server.ip}"/&gt;
  &lt;/replacetokens&gt;
  </code></pre>
  
  <p>Any help would be great!</p>