replaced the exec approach using the ant script approach