Dron,

Try using separate <arg> elements instead of a single "commandline"
attribute.

For example:

<exec program="SOSCmd.exe" verbose="true">
        <arg value="-command" />
        <arg value="GetProject" />
        <arg value="-server" />
        <arg value="${sos.server}" />
        <arg value="-name" />
        <arg value="${vss.user}" />
        <arg value="-password" />
        <arg value="${vss.password}" />
        <arg value="-database" />
        <arg file="${vss.uncpath}" />
        <arg value="-project" />
        <arg dir="${project.uipath}" />
        <arg value="-workdir" />
        <arg dir="${ui.path}" />
        <arg value="-recursive" />
</exec>

Hope this helps,

Gert

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> murty dronamraju
> Sent: donderdag 24 maart 2005 21:07
> To: [email protected]
> Subject: [Nant-users] Problems with sosget
> 
> Hi All:
> I am having a problem with sosget, consistently running into a "Failed
> to open database" error in my script.
> 
> Here's what i have in my script:
> <exec program="SOSCmd.exe" commandline='-command GetProject -server
> ${sos.server} -name ${vss.user} -password ${vss.password} -database
> ${vss.uncpath} -project ${project.uipath} -workdir "${ui.path}"
> -recursive' verbose="true" failonerror="false" />
> 
> 
> I can use the GUI client of SourceOffsite to login and do a get-latest
> using the information above. My database name has a space in it :
> E:\VSS\xxx 2.0\srcsafe.ini
> 
> When my script runs, i get the following error message:
> 
> [exec] Starting 'SOSCmd.exe (-command GetProject -server
> 555.555.555.555:8888 -name XXXXX -password ppppp -database E:\VSS\XXXX
> 2.0\srcsafe.ini -project $/Source/QQQQQ/UI -workdir "C:\YYYYY"
> -recursive)' in 'C:\Off2'
>                  [exec] Failed to open database: E:\VSS\XXXX
>                  [exec] 
>                  [exec] 
>                  [exec] Available databases:
>                  [exec] E:\VSS\IMFA\srcsafe.ini
>                  [exec] 
>                  [exec] E:\VSS\MPP\srcsafe.ini
>                  [exec] 
>                  [exec] E:\VSS\XXXX 2.0\srcsafe.ini
> 
> As you can see nAnt is not reading the complete database name.I have
> tried using unc to map to the database etc , still it doesn't help. I
> am also sure i have the right information about the SOS server and the
> login credentials.
> 
> Any input would be highly appreciated.
> 
> 
> Thanks,
> Dron
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from 
> real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Nant-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/nant-users
> 



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Nant-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to