It looks like you need to combine tasks:
This separates the characters '\ r' and '\ n' of the file and loads it into the file:
<loadfile srcfile="${src.file}" property="${src.file.contents}"> <filterchain> <filterreader classname="org.apache.tools.ant.filters.StripLineBreaks"/> </filterchain> </loadfile>
After downloading, the files merge them into another:
<concat destfile="final.txt"> ... </concat>
Inside concat, use propertyset to reference the contents of files:
<propertyset id="properties-starting-with-bar"> <propertyref prefix="src.file"/> </propertyset>
source share