/** * Writes the generated code to the proper file. */ public void record() throws IOException { if (_code == null) return; Writer writer = _writer; if (writer == null) { File file = getFile(); Files.backup(file, false); writer = new FileWriter(file); } PrintWriter printer = new PrintWriter(writer); printer.print(_code); printer.flush(); if (_writer == null) writer.close(); }
/** * Writes the generated code to the proper file. */ public void record() throws IOException { if (_code == null) return; Writer writer = _writer; if (writer == null) { File file = getFile(); Files.backup(file, false); writer = new FileWriter(file); } PrintWriter printer = new PrintWriter(writer); printer.print(_code); printer.flush(); if (_writer == null) writer.close(); }
/** * Writes the generated code to the proper file. */ public void record() throws IOException { if (_code == null) return; Writer writer = _writer; if (writer == null) { File file = getFile(); Files.backup(file, false); writer = new FileWriter(file); } PrintWriter printer = new PrintWriter(writer); printer.print(_code); printer.flush(); if (_writer == null) writer.close(); }
/** * Writes the generated code to the proper file. */ public void record() throws IOException { if (_code == null) return; Writer writer = _writer; if (writer == null) { File file = getFile(); Files.backup(file, false); writer = new FileWriter(file); } PrintWriter printer = new PrintWriter(writer); printer.print(_code); printer.flush(); if (_writer == null) writer.close(); }
/** * Writes the generated code to the proper file. */ public void record() throws IOException { if (_code == null) return; Writer writer = _writer; if (writer == null) { File file = getFile(); Files.backup(file, false); writer = new FileWriter(file); } PrintWriter printer = new PrintWriter(writer); printer.print(_code); printer.flush(); if (_writer == null) writer.close(); }
tool.setCodeFormat(flags.format); if (tool.run()) { log.info(_loc.get("appid-output", tool.getFile())); tool.record(); } else
tool.setCodeFormat(flags.format); if (tool.run()) { log.info(_loc.get("appid-output", tool.getFile())); tool.record(); } else
tool.setCodeFormat(flags.format); if (tool.run()) { log.info(_loc.get("appid-output", tool.getFile())); tool.record(); } else
tool.setCodeFormat(flags.format); if (tool.run()) { log.info(_loc.get("appid-output", tool.getFile())); tool.record(); } else
tool.setCodeFormat(flags.format); if (tool.run()) { log.info(_loc.get("appid-output", tool.getFile())); tool.record(); } else