ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/cvslib ChangeLogWriter.java
Date Tue, 15 Mar 2005 15:00:10 GMT
bodewig     2005/03/15 07:00:10

  Modified:    src/main/org/apache/tools/ant/taskdefs/cvslib
                        ChangeLogWriter.java
  Log:
  indent
  
  Revision  Changes    Path
  1.20      +12 -12    ant/src/main/org/apache/tools/ant/taskdefs/cvslib/ChangeLogWriter.java
  
  Index: ChangeLogWriter.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/cvslib/ChangeLogWriter.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- ChangeLogWriter.java	15 Mar 2005 14:54:32 -0000	1.19
  +++ ChangeLogWriter.java	15 Mar 2005 15:00:10 -0000	1.20
  @@ -57,19 +57,19 @@
       public void printChangeLog(final PrintWriter output,
                                  final CVSEntry[] entries) {
           try {
  -        output.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
  -        Document doc = DOMUtils.newDocument();
  -        Element root = doc.createElement("changelog");
  -        DOM_WRITER.openElement(root, output, 0, "\t");
  -        output.println();
  -        for (int i = 0; i < entries.length; i++) {
  -            final CVSEntry entry = entries[i];
  +            output.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
  +            Document doc = DOMUtils.newDocument();
  +            Element root = doc.createElement("changelog");
  +            DOM_WRITER.openElement(root, output, 0, "\t");
  +            output.println();
  +            for (int i = 0; i < entries.length; i++) {
  +                final CVSEntry entry = entries[i];
   
  -            printEntry(doc, output, entry);
  -        }
  -        DOM_WRITER.closeElement(root, output, 0, "\t", true);
  -        output.flush();
  -        output.close();
  +                printEntry(doc, output, entry);
  +            }
  +            DOM_WRITER.closeElement(root, output, 0, "\t", true);
  +            output.flush();
  +            output.close();
           } catch (IOException e) {
               throw new org.apache.tools.ant.BuildException(e);
           }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message