I typically work on windows, but in virtually all of the software I use 
I use paths in the form of:
A/B/C

Windows seems to interpret this OK in the lower level API's (at least in 
.NET, havent actually tried directly win32 stuff in ages).  So I suspect 
that you could use paths in that form pretty much everywhere.

    -Jacob

Brass Tilde wrote:
>>  I am trying to use the path combine operation to launch an exec task with
>> the correct executable.  I was hoping that path combine would correctly
>> combine for the correct OS   A/B/C for mac and A\B\C for windows.
>>     
>
>   
>> path::combine ( "A", "B/C") would correctly give A/B/C for mac and A\B\C for
>> windows.
>>     
>
>   
>> But it doesnt seem to be the case. I can always combine two folders at a
>> time but it seems very verbose for large paths.
>>     
>
> Are you worried that provided path formed that way to the exec task
> will not work, or that some parameter passed to an executable won't
> work correctly?  If the former, NAnt will usually do the right thing
> and be able to find the program to be executed (or copied, or deleted,
> or moved, or used with any other internal task) even if the path isn't
> "correct" for that OS/Filesystem.
>
> I haven't tested to see if it rectifies paths sent as parameters to
> external programs, though it should be easy for you to test.
>
>   
>> Is there a good easy way to achieve what I want to do ?
>>     
>
> If NAnt doesn't do the correctly, you should be able to use the
> string::replace() function to get what you want.
>
> Brad
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> NAnt-users mailing list
> NAnt-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nant-users
>
>
>
>   


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to