title: Can gradle do substitutions as it copies resources?
body: <p>For a group of developers, all the differences are stored in a normal property file:</p>
  
  <pre><code>token1=some value
  token2=9000
  etc.
  </code></pre>
  
  <p>The 'tokens' are used in a series of XML files that reside in the normal src/main/resources directory.  When Gradle copies these files into the build directory (and I don't know for sure what task that is), is there any opportunity to execute custom code?   Specifically, I would like to have the token values from the property file substituted into the copy.  Thus, the original copy remains untouched, but the version in the runtime has the desired values for the given developer.</p>
  
  <p>Finally, I know this can done brute force with two or three steps that change the file after it is copied.  I really want to know if there is an elegant way to do this in a single step.</p>