title: Gradle copy task, inside filter - gradle.properties file value not working
body: <p>Inside gradle copy filter task in my <code>build.gradle</code> file, I am trying to read label value from <code>gradle.properties</code> file or from a variable. Please refer below piece of code:</p>
  
  <pre><code>def label = "2.2"
  
  task filterJS(type: Copy) {
     from 'src/main/webapp'
     into 'build/webapp'
  
     filter(ReplaceTokens, tokens: [vlabel: $label])   
  }
  </code></pre>
  
  <p>In HTML file, I have <code>@vlabel@</code></p>
  
  <p>On running gradle <code>filterJS</code>, getting below exception</p>
  
  <ul>
  <li>What went wrong:
  A problem occurred evaluating project ':CargoSystemUX'.
  
  <blockquote>
    <p>Could not find property <code>$label</code> on task <code>:CargoSystemUX:filterJS</code>.</p>
  </blockquote></li>
  </ul>
  
  <p>I am not able to replace <code>$label</code> with its value at run time. Please suggest me the solution for this.</p>