A simple patch.
Created attachment 90882 [details, diff] ant-owanttask-1.1-jdk15.patch
generation-2 solves this elegantly