Hi,

I hope this hasn't been asked a thousands times - I'm new
to NAnt.

I am attempting to use the "cl" task.  The path in which
my source files reside has white spaces in it.  When NAnt
turns the sources into arguments to cl, the arguments are
not enclosed in quotes and cl barfs.

Here's the target:

        <target name="release">
                <property name="build" value="Release"/>
                <cl outputdir="${build}" verbose="true" options='...'>
                        <sources>
                                <includes name="*.cpp"/>
                        </sources>
                </cl>
        </target>

(the *.cpp files reside in "C:\My Stuff")

The build fails:

cl
...
   /Fo"C:\My Stuff\Release/"
   C:\My Stuff\Info.cpp

cl : Command line warning D4024 : unrecognized source file type 'C:\My',
object file assumed
cl : Command line warning D4027 : source file 'C:\My' ignored


Since Nant invokes cl on my behalf, I don't know how to
cause each source to be treated as an argument (ie., 
surrounded by quotes).

thanks!
Derek




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to