Thank you Bob - using <arg line="x y"/> achieved the desired result,
including the use of properties.

-Steve 

-----Original Message-----
From: Bob Archer [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 29, 2008 1:05 PM
To: Steve Kapinos; nant-users@lists.sourceforge.net
Subject: RE: [NAnt-users] way to see what exec passes to command line?

Yes, if you have spaces in value then they are surrounded by quotes. Try
using line instead of value. That should pass the argument as is.

BOb


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve
Kapinos
Sent: Friday, February 29, 2008 12:59 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] way to see what exec passes to command line?

 

Noob here..

I'm having trouble using exec to pass arguements to my svn client
successfully, but I can't figure out how to see what nant is actually
passing to the command line.  verbose and debug aren't helping.

in the build file I have

        <exec program="C:\Program Files\Subversion\bin\svn.exe">
                <arg value="--non-interactive"/>
                <arg value="--username ${svn.user}"/>
                <arg value="--password ${svn.pass}"/>
                <arg value="update"/>
        </exec>

But when I run that target, I the most output I can get is

     [exec] Starting 'C:\Program Files\Subversion\bin\svn.exe (
--non-interactive "--username skapinos" "--password asdfasf" update)' in
'D:\Projects\test\alpha'
     [exec] svn.exe: invalid option: --username skapinos
     [exec] Type 'svn help' for usage.

The arguements are correct for the commmand itself, as I can do it
manually, but I can't format my exec properly to have it execute.  What
am I missing?  Is exec really passing the ( ) and " " in the command?
How can I watch exactly what nant sends to the command line?

how do I pass a simple

command arg1 arg2 arg3 

Without quotes around arg1, arg2, etc.  Is the commandline option my
only choice? can I continue to use property variables in a commandline
string like I used above in arg?

Thanks

-Steve



------------------------------------------------------------------------
-
This SF.net email is sponsored by: Microsoft Defy all challenges.
Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to