132133134135136137138139140141
ctx.put("jars", jars); Writer outputs = null; outputs = new OutputStreamWriter(new BufferedOutputStream(new FileOutputStream(targetFile)), "UTF-8"); VelocityWriter writer = new VelocityWriter(outputs); tmpl.merge(ctx, writer); writer.close(); }