From d27c3f00bcca211f03152f4933f710563b75b821 Mon Sep 17 00:00:00 2001 From: Xavier Hanin Date: Thu, 30 Mar 2006 16:37:47 +0000 Subject: [PATCH] FIX: Delivered Ivy files with incomplete last line. (IVY-125) (Thanks to Matthias Kilian) git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/trunk@484260 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 2 ++ src/java/fr/jayasoft/ivy/xml/XmlModuleDescriptorUpdater.java | 1 + test/java/fr/jayasoft/ivy/xml/updated.xml | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index 615d985d..3024ca0f 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,5 @@ +- FIX: Delivered Ivy files with incomplete last line. (IVY-125) (Thanks to Matthias Kilian) + version 1.3.1 - 2006-03-30 =============================== - FIX: retrieval of multiple artifacts in different configurations does not work as expected (IVY-188) diff --git a/src/java/fr/jayasoft/ivy/xml/XmlModuleDescriptorUpdater.java b/src/java/fr/jayasoft/ivy/xml/XmlModuleDescriptorUpdater.java index 31c4fec2..ccaa1e15 100644 --- a/src/java/fr/jayasoft/ivy/xml/XmlModuleDescriptorUpdater.java +++ b/src/java/fr/jayasoft/ivy/xml/XmlModuleDescriptorUpdater.java @@ -217,6 +217,7 @@ public class XmlModuleDescriptorUpdater { } public void endDocument() throws SAXException { + out.print(LINE_SEPARATOR); out.flush(); out.close(); } diff --git a/test/java/fr/jayasoft/ivy/xml/updated.xml b/test/java/fr/jayasoft/ivy/xml/updated.xml index c7744af4..c5899052 100644 --- a/test/java/fr/jayasoft/ivy/xml/updated.xml +++ b/test/java/fr/jayasoft/ivy/xml/updated.xml @@ -81,4 +81,4 @@ - \ No newline at end of file +