It will not work - check for null should be performed before executing
toString().
- Alexey.
On 27 May 2005 20:29:55 -0000, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
>
> mbenson 2005/05/27 13:29:55
>
> Modified: src/main/org/apache/tools/ant/types Description.java
> Log:
> Replace properties in description elements
>
> Revision Changes Path
> 1.22 +2 -2 ant/src/main/org/apache/tools/ant/types/Description.java
>
> Index: Description.java
> ===================================================================
> RCS file:
> /home/cvs/ant/src/main/org/apache/tools/ant/types/Description.java,v
> retrieving revision 1.21
> retrieving revision 1.22
> diff -u -r1.21 -r1.22
> --- Description.java 9 Mar 2005 00:20:42 -0000 1.21
> +++ Description.java 27 May 2005 20:29:55 -0000 1.22
> @@ -99,9 +99,9 @@
> continue;
> }
> UnknownElement ue = ((UnknownElement) task);
> - StringBuffer descComp = ue.getWrapper().getText();
> + String descComp = ue.getWrapper().getText().toString();
> if (descComp != null) {
> - description.append((Object) descComp);
> + description.append(project.replaceProperties(descComp));
> }
> }
> }
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Alexey N. Solofnenko trelony at gmail.com <http://gmail.com>
home: http://trelony.cjb.net/
Pleasant Hill, CA (GMT-8 hours usually)