You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Daniel Barclay <db...@mercator.com> on 2002/05/06 15:43:12 UTC

RE: How do I specify multiple Windows directories in one statement?



>   <property name="some.path" value="C:/xyz/dir1:C:/xyz/dir2"/>
>   <path id="whatever">
>     <pathelement path="${some.path}"/>
>   </path>
>   <property name="whatever" refid="whatever"/>
> 
>   <target name="echoit">
>     <echo>whatever = ${whatever}</echo>
>   </target>
> 
> $ ant -f echoit
> echoit:
>      [echo] whatever = C:\xyz\dir1;C:\xyz\dir2
> 
> Note that the foreslashes are now backslashes and the path 
> separator is
> now a semicolon.

Oh, okay.  I didn't realize Ant could distinguish things in that 
case.

What are the rules for deciding when a colon is a search path 
entry delimiter vs. when its part of a partname within a search
path entry?

Is it possible to write a search path consisting of the relative 
pathname "C" (e.g., a subdirectory named "C"), the relative pathname 
"\xyz\dir1", the relative pathname "D", and then the relative pathname 
"\xyz\dir2"?)


Daniel






--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: How do I specify multiple Windows directories in one statement?

Posted by Diane Holt <ho...@yahoo.com>.
--- Daniel Barclay <db...@mercator.com> wrote:
> What are the rules for deciding when a colon is a search path 
> entry delimiter vs. when its part of a partname within a search
> path entry?

I think there's some look-ahead that's done for the different platforms.
Recommend you peruse the code, if you're really curious.

> Is it possible to write a search path consisting of the relative 
> pathname "C" (e.g., a subdirectory named "C"), the relative pathname 
> "\xyz\dir1", the relative pathname "D", and then the relative pathname 
> "\xyz\dir2"?)

"\xyz\dir{1,2}" aren't relative pathnames.

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>