title: Gradle: Replace Tokens by finding the tokens from property file
body: <p>Currently I understand that we can use <code>org.apache.tools.ant.filters.ReplaceTokens</code> to replace the contents of a file during build in the following way.</p>
  
  <p><code>myBeans.xml</code>:</p>
  
  <pre><code>&lt;bean id="mybean1" class="com.test.MyClass1" &gt;
      &lt;property name="myprop1" value="@myproperty@" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p><code>my.properties</code>:</p>
  
  <pre><code>myprop=testme
  </code></pre>
  
  <p>gradle file:</p>
  
  <pre><code>from file("myBeans.xml"), {
     filter(ReplaceTokens, tokens: ["myproperty": project.properties["myprop"]])
  }
  </code></pre>
  
  <p>However I would want gradle to find the property names from <code>my.properties</code> file and replace it in the xml file (without mentioning <code>myprop</code> in the filter). If not, I would have to add all the <code>PlaceHolders</code> manually.</p>