fix looping in replace task
add log file option, and add versionID to ant params