Leveraged write_jar_script helper.