Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 31374 invoked from network); 24 Aug 2007 08:16:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Aug 2007 08:16:16 -0000 Received: (qmail 68681 invoked by uid 500); 24 Aug 2007 08:16:09 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 68643 invoked by uid 500); 24 Aug 2007 08:16:09 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 68632 invoked by uid 99); 24 Aug 2007 08:16:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Aug 2007 01:16:09 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [83.100.197.5] (HELO nemesis.axiomsystems.com) (83.100.197.5) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Aug 2007 08:16:46 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Is & a somehow special character to Ant? Date: Fri, 24 Aug 2007 09:15:29 +0100 Message-ID: <2C89AC11F6D7F9469B7E4A71D8309FFD74E637@nemesis.axiom.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Is & a somehow special character to Ant? Thread-Index: AcfmJqciQ1F0ZG12RTa2RqejftbYCQAADZ5g From: "Keith Hatton" To: "Ant Users List" X-Virus-Checked: Checked by ClamAV on apache.org You probably need to use the XML escape sequence "&" Hope this helps Keith -----Original Message----- From: Krzysztof Kucybala [mailto:kkucybala@echo.fr]=20 Sent: 24 August 2007 09:13 To: Ant Users List Subject: Is & a somehow special character to Ant? Hi, I'm trying to use the exec task to issue a shell command, whose output=20 to stderr and stdout I'd really like redirected to a file and the=20 deleted, as it is not relevant and is corrupting my build report. So this is what I run on the command line: phpunit --log-xml somelog.xml MyCoolTest &>test.dump On the shell it works fine, but when put to ant exec task I get this error: The entity name must immediately follow the '&' in the entity reference. Can anyone please tell me how to get around this? I tried escaping the & with \, but that's not working either :o( Thanks in advance for any help. Best regards, Krzysztof --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org