Add output wrapper to Ant task
Contributed by timwintle and bitwiseman
Fixes issue 853