add ant api instead of cmd