Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 66322 invoked from network); 8 Mar 2005 21:08:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Mar 2005 21:08:42 -0000 Received: (qmail 63081 invoked by uid 500); 8 Mar 2005 21:08:37 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 63048 invoked by uid 500); 8 Mar 2005 21:08:37 -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 63027 invoked by uid 99); 8 Mar 2005 21:08:36 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from srf-isp-fw.fairisaac.com (HELO srfmsgpf00.corp.fairisaac.com) (168.230.33.10) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 08 Mar 2005 13:08:35 -0800 Received: from SRFMSGMB00.corp.fairisaac.com ([10.17.3.106]) by srfmsgpf00.corp.fairisaac.com with Microsoft SMTPSVC(6.0.3790.80); Tue, 8 Mar 2005 13:08:34 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: How to escape the quotes characters in a string? Date: Tue, 8 Mar 2005 13:08:33 -0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to escape the quotes characters in a string? Thread-Index: AcUkHvT9h3LiVcs4Sbi4JLJYQm8cBgAAIxrgAAC64WA= From: "Tawfik, Sameh E" To: "Ant Users List" X-OriginalArrivalTime: 08 Mar 2005 21:08:34.0275 (UTC) FILETIME=[FD0AAB30:01C52422] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, Thanks to everyone, everything works fine now. I used the following syntax: Sameh -----Original Message----- From: Nemana, Satya V [mailto:Satya.Nemana@ca.com]=20 Sent: Tuesday, March 08, 2005 12:51 PM To: Ant Users List Subject: RE: How to escape the quotes characters in a string? Here are some examples using quot and colon, as I used in the past, while playing with cpptasks.jar and ant-contrib.jar to automate the MSDEV Visua Studion .NET c++ builds using the Ant, to make it platform-independent. Following below constructs arguments as /YX"stdafx.h" /MACHINE:X86 etc Note: (A) "#58;" stands for ":" and (B) """ stands for ";" -Satya -----Original Message----- From: Matt Benson [mailto:gudnabrsam@yahoo.com]=20 Sent: Tuesday, March 08, 2005 3:39 PM To: Ant Users List Subject: Re: How to escape the quotes characters in a string? " -Matt --- "Tawfik, Sameh E" wrote: > Hi, >=20 > In my build.xml, I'm using the Ant exec task as > follow: >=20 > executable=3D"NMAKE.EXE"> > CFG=3D"WeightsEngine - > Win32Release""/> =20 > >=20 > When I try to build, Ant reports an error regarding > the double quotes > that I've around WE - Win32Release > string. > =20 > BUILD FAILED > C:\CVS_DB\ build.xml:78: Element type "arg" must be > followed by either > attribute specifications, ">" or "/>". >=20 > So, does anyone know how to escape the quote > characters in a string? >=20 > I'm using Apache Ant version 1.6.2 compiled on July > 16 2004 on WindowXP. >=20 > I need to put quotes around the value of the above > CFG parameters, > otherwise the Nmake command will only see the first > part WeigntsEgnine! > As follow: >=20 > executable=3D"NMAKE.EXE"> > CFG=3DWE - > Win32Release"/> >=20 > The above generates the following error: >=20 > [exec] Invalid configuration "WE" > specified. > [exec] You can specify a configuration when running > NMAKE [exec] by > defining the macro CFG on the command line. For > example: > [exec] NMAKE /f "WE.mak" > CFG=3D3D"WE - Win32 Debug" >=20 > Thanks, >=20 > Sameh >=20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: > user-unsubscribe@ant.apache.org > For additional commands, e-mail: > user-help@ant.apache.org >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org