Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 39165 invoked from network); 28 Oct 2003 22:21:36 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 28 Oct 2003 22:21:36 -0000 Received: (qmail 29296 invoked by uid 500); 28 Oct 2003 22:21:01 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 29251 invoked by uid 500); 28 Oct 2003 22:21:01 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 71688 invoked from network); 28 Oct 2003 18:47:19 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Foreach and "End Of Line" delimiter Date: Tue, 28 Oct 2003 13:47:21 -0500 Message-ID: <46C5DCD410224A42BE3151AC8AE75E4E0185F77E@tormbxw01.prod.quest.corp> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Foreach and "End Of Line" delimiter Thread-Index: AcOcrUUhY/lnY7QbRA2JjC0C3Kd+yAA1ImrA From: "Adam Mlodzinski" To: "Ant Users List" X-OriginalArrivalTime: 28 Oct 2003 18:47:22.0851 (UTC) FILETIME=[EC603330:01C39D83] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N With one modification, it works on any platform: The "/> is actually on the next line, so the quotes are quoting a new line sequence. It's storage is platform-dependent when it's saved, so if the build.xml file and the list file are saved on the same platform, they will match. If the list file line endings always match the platform the build is running on, use ${line.separator} instead (what Matt Benson said). If nothing matches (platform:properties file, or build.xml:properties file), you could also use a different delimiter, but the newlines will need to be trimmed or ignored by the target of your foreach: line1@ line2@ line3@ with --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org