Matt,
When I tried the following:
<exec dir="C:\CVS_DB\WeightsEngine" executable="NMAKE.EXE">
<arg line="/f WeightsEngine.mak CFG=&"WeightsEngine -
Win32Release&""/>
</exec>
I got the following error:
BUILD FAILED
C:\CVS_DB\WeightsEngine\WE_Win.xml:84: The entity name must immediately
follow the '&' in the entity reference.
Did I miss something?
Sameh
-----Original Message-----
From: Matt Benson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 08, 2005 12:39 PM
To: Ant Users List
Subject: Re: How to escape the quotes characters in a string?
"
-Matt
--- "Tawfik, Sameh E" <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> In my build.xml, I'm using the Ant exec task as
> follow:
>
> <exec dir="C:\CVS_DB\WeightsEngine"
> executable="NMAKE.EXE">
> <arg line="/f WeightsEngine.mak
> CFG="WeightsEngine -
> Win32Release""/>
> </exec>
>
> When I try to build, Ant reports an error regarding
> the double quotes
> that I've around WeightsEngine - Win32Release
> string.
>
> BUILD FAILED
> C:\CVS_DB\ build.xml:78: Element type "arg" must be
> followed by either
> attribute specifications, ">" or "/>".
>
> So, does anyone know how to escape the quote
> characters in a string?
>
> I'm using Apache Ant version 1.6.2 compiled on July
> 16 2004 on WindowXP.
>
> 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:
>
> <exec dir="C:\CVS_DB\WeightsEngine"
> executable="NMAKE.EXE">
> <arg line="/f WeightsEngine.mak
> CFG=WeightsEngine -
> Win32Release"/> </exec>
>
> The above generates the following error:
>
> [exec] Invalid configuration "WeightsEngine"
> 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 "WeightsEngine.mak"
> CFG=3D"WeightsEngine - Win32 Debug"
>
> Thanks,
>
> Sameh
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]