Marcin Hoppe wrote:

On 4/29/05, Shelly Midha <[EMAIL PROTECTED]> wrote:


..

   <exec program="C:\[...]\SDK\v1.1\Bin\sn">
     <arg value="-q" />
     <arg value="-k" />
     <arg value="${key.pair}.snk" />
   </exec>
 </target>
</project>

Values of <arg> tag's value parameter must not contain spaces, AFAIK.
I don't know if it is stated in documentation but my exprience shows
that this is the answer.


You're solution is correct but the analysis is a bit off the mark. It's perfectly ok to have spaces in the arg values, but only if they're spaces that would be quoted at the command line.

Each arg element defines exactly one argument to the program being executed. Imagine that each arg could be surrounded by quotes if passed on the command line. Hence

   <exec program="xcopy" ...
       <arg value="my" />
       <arg value="certain file" />
   ....

is equivalent to typing

   xcopy "my" "certain file"

which is perfectly fine, even though there are spaces in the second arg. It copies the file "my" to the file "certain file". But if you use

<arg value="-f C:\Doucments and Settings\JohnDoe\My Documents\someFile" />

then you get

   xcopy "my certain file"

which is an error, since it thinks that the file you want to copy is called "my certain file" but you didn't say where to copy it.

Gary




-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to