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...

 

-Mark

 

 



 
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. 

________________________________


From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Phil
Sayers
Sent: Tuesday, April 10, 2007 8:57 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] passing string delimiters

 

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.

 

so my msbuild task looks like this

 

 < msbuild project="'${core.source}\Solution 1.sln'" >
   < arg line="OutputDir=${core.output}\" />
   < arg line="Configuration=Debug" />
   < arg line="AdditionalLibPaths=${core.sharedassemblies}" />

</  msbuild>

 

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.

 

Thanks

Phil
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to