Deleting a directory with AntBuilder

Deleting a directory with the AntBuilder is simple.

def ant = new AntBuilder()
ant.delete(dir:'someDir',failonerror:false)

It will output.

[delete] Deleting directory C:\Temp\almanac\someDir