ctx.put("SOURCE_DIRS", getSourceDirs());
ctx.put("GLOBAL_CP", getGlobalClasspath());
Writer outputs = new OutputStreamWriter(new BufferedOutputStream(new FileOutputStream(outputFile)),
"UTF-8");
VelocityWriter writer = new VelocityWriter(outputs);
tmpl.merge(ctx, writer);
writer.close();
}