I've removed the embedded Ant in HEAD. I rewrote build.bat and build.sh to call a separately installed Ant. Instructions will be given on the command-line if Ant cannot be found.
Peter, please test build.sh on Unix. I hope I got the whole thing right. Jeremias Maerki