Concatenate a string to a file:
<concat destfile="README">Hello, World!</concat>
Concatenate a series of files to the console:
<concat> <fileset dir="messages" includes="*important*"/> </concat>
Concatenate a single file, appending if the destination file exists:
<concat destfile="NOTES" append="true"> <filelist dir="notes" files="note.txt"/> </concat>
Concatenate a series of files, overwriting if the destination file exists:
<concat destfile="${docbook.dir}/all-sections.xml"> <filelist dir="${docbook.dir}/sections" files="introduction.xml,overview.xml"/> <fileset dir="${docbook.dir}" includes="sections/*.xml" excludes="introduction.xml,overview.xml"/> </concat>