nitc :: ModelBuilder :: write_and_make
# Write Java code and compile it into an executable jar
fun write_and_make(compiler: JavaCompiler) do
var time0 = get_time
toolcontext.info("*** WRITING JAVA ***", 1)
compiler.compile_dir.mkdir
var jfiles = write_java_files(compiler)
var time1 = get_time
toolcontext.info("*** END WRITING JAVA: {time1-time0} ***", 2)
time0 = time1
toolcontext.info("*** COMPILING JAVA ***", 1)
if toolcontext.opt_ant.value then
build_with_ant(compiler, jfiles)
else
build_with_make(compiler, jfiles)
end
write_shell_script(compiler)
time1 = get_time
toolcontext.info("*** END COMPILING JAVA: {time1-time0} ***", 2)
end
src/compiler/java_compiler.nit:63,2--87,4