<?xml version="1.0"?>
<project name="concat files" default="build">
<target name="build">
<concat destfile="concatenated.txt" fixlastline="yes">
<path>
<pathelement path="<file_path>\text1.txt" />
<pathelement path="<file_path>\text2.txt" />
</concat>
</target>
</project>
Commands:
ant -buildfile build-file.xml build-target