title: Gradle: replace tokens with project properties
body: <p>I have resource file with some tokens that need to be replaced with file paths using the java plugin task 'processResources'. Does gradle provide a way in which, the token value is an expression?</p>
  
  <p>1) src/resources/config.properties file has a token:
  SRC_ROOT_DIR   = @SRC_ROOT_DIR@</p>
  
  <p>2) build.gradle file contains the following:</p>
  
  <pre><code>processResources{
     filter ReplaceTokens, tokens:[SRC_ROOT_DIR: project.projectDir]
  }
  </code></pre>
  
  <p>This throws an exception saying : could not copy file '..src\resources\config.properties' to '..build\resources\main\config.properties'</p>