ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexey Solofnenko <trel...@gmail.com>
Subject Re: cvs commit: ant/src/main/org/apache/tools/ant/types Description.java
Date Fri, 27 May 2005 20:31:15 GMT
It will not work - check for null should be performed before executing 
toString().

- Alexey.

On 27 May 2005 20:29:55 -0000, mbenson@apache.org <mbenson@apache.org> 
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: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
> 
> 


-- 
Alexey N. Solofnenko trelony at gmail.com <http://gmail.com>
home: http://trelony.cjb.net/
Pleasant Hill, CA (GMT-8 hours usually)

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message