From: Mark M. <MMo...@gl...> - 2007-04-10 13:17:13
|
How about reversing the wrapping (i.e. '"Solution 1.sln"' instead of "'Solution 1.sln'"). Xml lets you quote attributes with either an apostrophe or a quote mark. If you put the double quotes inside the attribute declaration, the xml processor will take care of it and the nant plugins probably won't even have to look at it... =20 -Mark =20 =20 =20 This e-mail message, and any attachments, is intended only for the use = of the individual or entity identified in the alias address of this = message and may contain information that is confidential, privileged and = subject to legal restrictions and penalties regarding its unauthorized = disclosure and use. Any unauthorized review, copying, disclosure, use or = distribution is strictly prohibited. If you have received this e-mail = message in error, please notify the sender immediately by reply e-mail = and delete this message, and any attachments, from your system. Thank = you.=20 ________________________________ From: nan...@li... [mailto:nan...@li...] On Behalf Of Phil Sayers Sent: Tuesday, April 10, 2007 8:57 AM To: nan...@li... Subject: [NAnt-users] passing string delimiters =20 ok, I'm using the msbuild task from nantContrib, but i'm sure the same principles apply to nant, it's just a syntax issue. =20 so my msbuild task looks like this =20 < msbuild project=3D"'${core.source}\Solution 1.sln'" > < arg line=3D"OutputDir=3D${core.output}\" /> < arg line=3D"Configuration=3DDebug" /> < arg line=3D"AdditionalLibPaths=3D${core.sharedassemblies}" /> </ msbuild> =20 I'm getting a build error because the .sln file is passed to the msbuild executable without its filename being surrounded by quotes. With the space in the filename it's blowing up. Is there a way i can include the quotes for the "project" attribute? This has to be a common usage. =20 Thanks Phil |