Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6DEC61047E for ; Wed, 6 Nov 2013 01:06:52 +0000 (UTC) Received: (qmail 87619 invoked by uid 500); 6 Nov 2013 01:06:51 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 87567 invoked by uid 500); 6 Nov 2013 01:06:51 -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 87559 invoked by uid 99); 6 Nov 2013 01:06:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Nov 2013 01:06:51 +0000 X-ASF-Spam-Status: No, hits=-2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_HI,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dlwester@us.ibm.com designates 32.97.110.149 as permitted sender) Received: from [32.97.110.149] (HELO e31.co.us.ibm.com) (32.97.110.149) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Nov 2013 01:06:41 +0000 Received: from /spool/local by e31.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 5 Nov 2013 18:06:20 -0700 Received: from d03dlp01.boulder.ibm.com (9.17.202.177) by e31.co.us.ibm.com (192.168.1.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 5 Nov 2013 18:06:18 -0700 Received: from d03relay01.boulder.ibm.com (d03relay01.boulder.ibm.com [9.17.195.226]) by d03dlp01.boulder.ibm.com (Postfix) with ESMTP id D72ED1FF0020 for ; Tue, 5 Nov 2013 18:06:02 -0700 (MST) Received: from d03av05.boulder.ibm.com (d03av05.boulder.ibm.com [9.17.195.85]) by d03relay01.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id rA616HLi301508 for ; Tue, 5 Nov 2013 18:06:17 -0700 Received: from d03av05.boulder.ibm.com (localhost [127.0.0.1]) by d03av05.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id rA616H7p020019 for ; Tue, 5 Nov 2013 18:06:17 -0700 Received: from d03nm119.boulder.ibm.com (d03nm119.boulder.ibm.com [9.63.40.225]) by d03av05.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id rA616HPf020012 for ; Tue, 5 Nov 2013 18:06:17 -0700 In-Reply-To: <1383699171.72587.ezmlm@ant.apache.org> References: <1383699171.72587.ezmlm@ant.apache.org> To: user@ant.apache.org MIME-Version: 1.0 Subject: Issues With Quotes X-KeepSent: 9B1307B1:FDC07373-85257C1B:0004E611; type=4; name=$KeepSent X-Mailer: Lotus Notes Release 8.5.3FP4 SHF39 May 13, 2013 From: Dave Westerman Message-ID: Date: Tue, 5 Nov 2013 20:06:15 -0500 X-MIMETrack: Serialize by Router on D03NM119/03/M/IBM(Release 8.5.3FP2 ZX853FP2HF5|February, 2013) at 11/05/2013 18:06:16, Serialize complete at 11/05/2013 18:06:16 Content-Type: multipart/alternative; boundary="=_alternative 000610CB85257C1B_=" X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13110601-8236-0000-0000-000003776AEE X-Virus-Checked: Checked by ClamAV on apache.org --=_alternative 000610CB85257C1B_= Content-Type: text/plain; charset="US-ASCII" I have a problem with double-quotes in Ant, and I'm not sure how to get around the problem. I'm passing in an attribute that contains a value to search for in a file in Windows. I'm doing this: >From the command line, the findstr command can handle a quote in the data; for instance, this works to find a quote in the file: > findstr /c:""" However, Ant chokes when it encounters any quotes in the data I am passing to the macro via the '@{value}' argument. I have tried the following in the '@{value}' argument: " - unbalanced quote error "" - no syntax error, but doesn't work, because it's looking for two quotes \" - unbalanced quote error \\" - unbalanced quote error Any ideas how I can handle quotes in the '@{value}' argument? I will never know beforehand what may be in it. Thanks! --=_alternative 000610CB85257C1B_=--