Use path instead of file.
Use path instead of file.
Wrap ant call with static method and logging.