On 1/3/07, Steve Loughran <[EMAIL PROTECTED]> wrote:
[EMAIL PROTECTED] 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....
Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]