title: How to overwrite property file value with the one passed with ant -D key?
body: <p>Here is a property file:</p>
  
  <pre><code>test.url=https:\\url:port
  test.path=/home/folder
  test.location=Location
  test.version=1
  </code></pre>
  
  <p>And the following ant task:</p>
  
  <p>
      
          
          
          
          
      
  </p>
  
  <p>I can pass temporary value for one run of a task: </p>
  
  <pre><code>ant -Dtest.path=new_path test_props
  </code></pre>
  
  <p>How can I overwrite test.path value with one I pass using -D key? In order, after the same launch, the value of test.path would change to one I pass above?</p>
  
  <p>The following variants don't work:</p>
  
  <pre><code>&lt;entry key="test.path" value="${test.path}"/&gt;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>&lt;propertycopy name="test.path" from="${test_path}"/&gt;
  </code></pre>