Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 100 invoked from network); 10 Jan 2008 12:59:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jan 2008 12:59:03 -0000 Received: (qmail 25736 invoked by uid 500); 10 Jan 2008 12:58:49 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 25698 invoked by uid 500); 10 Jan 2008 12:58:49 -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 25687 invoked by uid 99); 10 Jan 2008 12:58:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jan 2008 04:58:49 -0800 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: domain of Alec.Fernandez@sas.com designates 149.173.6.148 as permitted sender) Received: from [149.173.6.148] (HELO mercav05.na.sas.com) (149.173.6.148) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jan 2008 12:58:34 +0000 Received: from merchub02.na.sas.com ([10.19.20.25]) by mercav05.na.sas.com with InterScan Message Security Suite; Thu, 10 Jan 2008 07:58:25 -0500 Received: from MERCMBX14.na.sas.com ([10.19.20.124]) by merchub02.na.sas.com ([10.19.20.25]) with mapi; Thu, 10 Jan 2008 07:58:25 -0500 From: Alec Fernandez To: Ant Users List Date: Thu, 10 Jan 2008 07:58:23 -0500 Subject: RE: an input for ant arg. Thread-Topic: an input for ant arg. Thread-Index: AchTc/NfapIaJWyHSm+r8udM7cX5SAAFHH4Q Message-ID: <345520A34347BA49B798F70B218ACD130437C01F93@MERCMBX14.na.sas.com> In-Reply-To: <4785F3A3.50501@apache.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Don't for get to use " for the " char and ' for the ' char in you= r ant source >> -----Original Message----- >> From: Steve Loughran [mailto:stevel@apache.org] >> Sent: Thursday, January 10, 2008 5:30 AM >> To: Ant Users List >> Subject: Re: an input for ant arg. >> >> Chun Ji wrote: >> >> > >> > >> > >> > > input.sql | awk '{print $4}'` "/> >> > >> > >> > >> > ... >> > " >> > The error msg is: Element type "arg" must be followed by >> either attribute specifications, ">" or "/>" >> > >> > >> > >> > So what should I do to solve this issue ? Any comments is welcome! >> > >> >> The problem is the second statement has way too many >> quotes in the line attribute for XML to handle. This an XML >> problem, not an ant one. >> You can use paired single quotes >> >> line=3D'some "inner" thing' >> or double >> line=3D"some 'other' thing" >> but you cant have the same quotation type inside as out. >> >> Try creating the string from a couple of properties >> >> ..and build these up >> >> of course, when you do that you'd find that the pipe, the >> grep and the awk wouldnt work, as they are shell commands. >> You'd need to run bash. >> Much better to >> -create at an outputredirector for the output >> -create a filterchain in the outputredirector that did your search >> >> -steve >> >> -- >> Steve Loughran >> http://www.1060.org/blogxter/publish/5 >> Author: Ant in Action http://antbook.org/ >> >> --------------------------------------------------------------------- >> 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