You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by mb...@apache.org on 2005/05/27 22:29:55 UTC
cvs commit: ant/src/main/org/apache/tools/ant/types Description.java
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
Re: cvs commit: ant/src/main/org/apache/tools/ant/types Description.java
Posted by Alexey Solofnenko <tr...@gmail.com>.
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 <mb...@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)