title: ant filterset property scope
body: <p>I'd like to use a filterset to write out a file replacing a variable which is set as an ant property. I can pass the property if I have a nested filterset, but not a refid; I'm reusing the filterset, so I'd like to use the refid. </p>
  
  <p>foo.old just contains <code>foo=@foo@</code></p>
  
  <p>This works:</p>
  
  <pre>
  &lt;target name="filterset-test1">
    &lt;property name="bar" value="here is foo" />
    &lt;copy file="foo.old" tofile="foo.new1">
      &lt;filterset  begintoken="@" endtoken="@">
        &lt;filter token="foo" value="${bar}" />
      &lt;/filterset>
    &lt;/copy>
  &lt;/target>
  </pre>
  
  <p>And this fails to replace the token:</p>
  
  <pre>
  &lt;filterset id="test-filters" begintoken="@" endtoken="@">
    &lt;filter token="foo" value="${bar}" />
  &lt;/filterset>
  &lt;target name="filterset-test3">
    &lt;property name="bar" value="property doesn't pass thru" />
    &lt;copy file="foo.old" tofile="foo.new3">
      &lt;filterset refid="test-filters" />
    &lt;/copy>
  &lt;/target>
  </pre>
  
  <p>Is there a way to do the latter? I've also tried writing a properties file and using it as the <code>filtersfile</code> property.</p>