add permission to ant script before invoking.