Please find the attached terrier_ant_build_components.zip file for this issue, which contains an Ant build for Terrier to meet the build process requirements listed above.
Running unix2dos and the end to end tests currently requires bash to be executed, which is the reason for the additional shell scripts. The directory structure indicates where they should live based on a build of Terrier 2.2.1.
The build was developed using Apache Ant 1.7.1 which is a pre-requisite for running the build.
I've tested it for Unix and Windows platforms, and creating release builds worked in both cases.
One caveat is that running the end to end tests is dependent on running the build target within a Unix environment. If the end to end tests need to be run in a Windows environment, consider using Cygwin to run equivalent shell commands within a batch script rather than a shell script. (e.g. to run egrep within Cygwin, call <cygwin_home>\bin\grep -e.)