Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-125

Delivered Ivy files with incomplete last line.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.2
    • 1.4-RC1
    • Core
    • None
    • Linux, J2SDK-1.4

    Description

      A delivered Ivy file has an incomplete last line, i.e. missing the final newline.

      This is a little bit annoying, since it may confuse tools like diff(1) or vi(1).

      The following trivial patch fixes this by writing a newline right at endDocument():

      — src/java/fr/jayasoft/ivy/xml/XmlModuleDescriptorUpdater.java.orig 2005-09-16 11:14:00.000000000 +0200
      +++ src/java/fr/jayasoft/ivy/xml/XmlModuleDescriptorUpdater.java 2006-01-10 14:29:19.000000000 +0100
      @@ -159,6 +159,8 @@
      }

      public void endDocument() throws SAXException

      { + // Avoid incomplete last line. + out.println(); out.flush(); out.close(); }

      Attachments

        Activity

          People

            xavier Xavier Hanin
            kili Matthias Kilian
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: