Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 90974 invoked from network); 21 Jan 2010 05:37:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Jan 2010 05:37:26 -0000 Received: (qmail 44464 invoked by uid 500); 21 Jan 2010 05:37:26 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 44393 invoked by uid 500); 21 Jan 2010 05:37:25 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 44384 invoked by uid 99); 21 Jan 2010 05:37:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jan 2010 05:37:25 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jan 2010 05:37:14 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 8841723889FF; Thu, 21 Jan 2010 05:36:53 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r901537 - in /ant/core/trunk/src: main/org/apache/tools/ant/util/LayoutPreservingProperties.java tests/antunit/taskdefs/optional/propertyfilelayout-test.xml Date: Thu, 21 Jan 2010 05:36:50 -0000 To: notifications@ant.apache.org From: bodewig@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100121053653.8841723889FF@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: bodewig Date: Thu Jan 21 05:36:46 2010 New Revision: 901537 URL: http://svn.apache.org/viewvc?rev=901537&view=rev Log: only add a newline before the first new property rather than every new one Added: ant/core/trunk/src/tests/antunit/taskdefs/optional/propertyfilelayout-test.xml (with props) Modified: ant/core/trunk/src/main/org/apache/tools/ant/util/LayoutPreservingProperties.java Modified: ant/core/trunk/src/main/org/apache/tools/ant/util/LayoutPreservingProperties.java URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/util/LayoutPreservingProperties.java?rev=901537&r1=901536&r2=901537&view=diff ============================================================================== --- ant/core/trunk/src/main/org/apache/tools/ant/util/LayoutPreservingProperties.java (original) +++ ant/core/trunk/src/main/org/apache/tools/ant/util/LayoutPreservingProperties.java Thu Jan 21 05:36:46 2010 @@ -265,6 +265,7 @@ if (((Pair)line).isNew()) { if (!writtenSep) { osw.write(LS); + writtenSep = true; } } osw.write(line.toString() + LS); Added: ant/core/trunk/src/tests/antunit/taskdefs/optional/propertyfilelayout-test.xml URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/taskdefs/optional/propertyfilelayout-test.xml?rev=901537&view=auto ============================================================================== --- ant/core/trunk/src/tests/antunit/taskdefs/optional/propertyfilelayout-test.xml (added) +++ ant/core/trunk/src/tests/antunit/taskdefs/optional/propertyfilelayout-test.xml Thu Jan 21 05:36:46 2010 @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Propchange: ant/core/trunk/src/tests/antunit/taskdefs/optional/propertyfilelayout-test.xml ------------------------------------------------------------------------------ svn:eol-style = native