Rewrite ant script a little.