ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: svn commit: r491723 - in /ant/core/trunk/docs/manual: CoreTasks/javac.html using.html
Date Fri, 05 Jan 2007 22:38:43 GMT
--- Peter Reilly <peter.kitt.reilly@gmail.com> 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....

Yes--I've thought for some time now that we might want
to delegate this to pathconvert to gain platform
sensitivity cheaply.  IMHO the chances of breaking
folks is relatively low = acceptable.

-Matt

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


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Mime
View raw message