code: public void generate(VelocityTemplate template) throws IOException {
      if (hasDirective(GENERATE_STRINGS_ONLY_DIRECTIVE)) {
        System.out.println(template.generateString());
      } else {
        getLog().log(Level.INFO, "Generating {0}", template.getTargetFile());
        File file = template.generateFile();
        getLog().log(Level.INFO, "    ... at {0}", file.getAbsolutePath());
      }
    }
docs: Public