Fixing Ant and Maven by hacking about spec tests

Some of the files will need their licence changed.