Write a simple bash script that runs the jar like it was a binary generated by nitc

Property definitions

nitc :: java_compiler $ ModelBuilder :: write_shell_script
	# Write a simple bash script that runs the jar like it was a binary generated by nitc
	private fun write_shell_script(compiler: JavaCompiler) do
		var outname = compiler.outname
		var shfile = new FileWriter.open(outname)
		shfile.write("#!/bin/bash\n")
		shfile.write("java -jar {outname}.jar \"$@\"\n")
		shfile.close
		sys.system("chmod +x {outname}")
	end
src/compiler/java_compiler.nit:217,2--225,4