title: ant copy from absolute path read from xml
body: <p>My problem is, I have to read the source path for a copy job from an xml file and then copy all files in that dir read from the xml file to another dir.</p>
  
  <p>Since code is more than words:</p>
  
  <pre><code>&lt;xmltask source="${projectfile}"&gt;
    &lt;copy path="Project/RecentResultsInfo/ResultsDirectoryOfRecentLoadTest/text()" property="recentdir" attrValue="true"/&gt;
  &lt;/xmltask&gt;
  &lt;copy todir="${targetdirectory}"&gt;
    &lt;fileset dir="${recentdir}"/&gt;
  &lt;/copy&gt;
  </code></pre>
  
  <p>The output when running this target is:
  C:\develop\build.xml:44: Warning: Could not find resource file "C:\develop\C:\Programme\tool\test_90\" to copy.</p>
  
  <p>It seems in fileset it does not recognize, that <code>recentdir</code> holds a full path inside. The written xml from the application has a newline before and after the path in the xml file that is read with the path. So ant does not recognize the path since theres a newline in front of it.</p>
  
  <p>Is there anything like trim for ant?</p>
  
  <p>Can anybody help me getting ant to accept that path?</p>