Added task to delete definitions, and fixed bug.
Complete Ant part.
Bug fixes.