/** * Print out the specified entries. * * @param output writer to which to send output. * @param entries the entries to be written. */ public void printChangeLog(final PrintWriter output, final CVSEntry[] entries) { output.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); output.println("<changelog>"); for (int i = 0; i < entries.length; i++) { final CVSEntry entry = entries[i]; printEntry(output, entry); } output.println("</changelog>"); output.flush(); output.close(); }
/** * Print changelog to file specified in task. * * @param entrySet the entry set to write. * @throws BuildException if there is an error writing changelog. */ private void writeChangeLog(final CVSEntry[] entrySet) throws BuildException { OutputStream output = null; try { output = m_output; final PrintWriter writer = new PrintWriter(new OutputStreamWriter(output, "UTF-8")); final ChangeLogWriter serializer = new ChangeLogWriter(); serializer.printChangeLog(writer, entrySet); } catch (final UnsupportedEncodingException uee) { getProject().log(uee.toString(), Project.MSG_ERR); } catch (final IOException ioe) { throw new BuildException(ioe.toString(), ioe); } finally { IOUtils.closeQuietly(output); } } }
/** * Print changelog to file specified in task. * * @param entrySet the entry set to write. * @throws BuildException if there is an error writing changelog. */ private void writeChangeLog(final CVSEntry[] entrySet) throws BuildException { OutputStream output = null; try { output = m_output; final PrintWriter writer = new PrintWriter(new OutputStreamWriter(output, "UTF-8")); final ChangeLogWriter serializer = new ChangeLogWriter(); serializer.printChangeLog(writer, entrySet); } catch (final UnsupportedEncodingException uee) { getProject().log(uee.toString(), Project.MSG_ERR); } catch (final IOException ioe) { throw new BuildException(ioe.toString(), ioe); } finally { IOUtils.closeQuietly(output); } } }
/** * Print out the specified entries. * * @param output writer to which to send output. * @param entries the entries to be written. */ public void printChangeLog(final PrintWriter output, final CVSEntry[] entries) { output.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); output.println("<changelog>"); for (int i = 0; i < entries.length; i++) { final CVSEntry entry = entries[i]; printEntry(output, entry); } output.println("</changelog>"); output.flush(); output.close(); }