Added task method to Ant object.