ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: svn commit: r491723 - in /ant/core/trunk/docs/manual: CoreTasks/javac.html using.html
Date Mon, 08 Jan 2007 11:19:13 GMT
Peter Reilly wrote:
> On 1/3/07, Steve Loughran <stevel@apache.org> wrote:
>> peterreilly@apache.org wrote:
>>
>> > +  <h4><a name="pathshortcut">Path Shortcut</a></h4>
>> > +  <p>
>> > +    In Ant 1.6 a shortcut for converting paths to OS specific strings
>> > +    in properties has been added. One can use the expression
>> > +    ${toString:<em>pathreference</em>} to convert a path element
>> > +    reference to a string that can be used for a path argument.
>> > +    For example:
>> > +  </p>
>>
>>
>> Does that work for any resolvable datatype? If so, cool.
> No, it depends on the implemenation of toString of the particular
> class. The ant code uses the toString() method of path when
> it is handling the path attribute of the command line arg, so
> that is how I know that it is safe to use for paths.
> 
> Fileset.toString() on the other hand use ';' to seperate the files....
> 

We may want to tweak that to make it platform neutral.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message