You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2001/07/04 19:16:52 UTC
[Bug 1918] - Target element description attribute does not support ${name}
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1918
*** shadow/1918 Sun May 27 13:55:34 2001
--- shadow/1918.tmp.23106 Wed Jul 4 10:16:51 2001
***************
*** 2,11 ****
| Target element description attribute does not support ${name} |
+----------------------------------------------------------------------------+
| Bug #: 1918 Product: Ant |
! | Status: NEW Version: Nightly build |
! | Resolution: Platform: PC |
! | Severity: Normal OS/Version: |
! | Priority: Component: Core |
+----------------------------------------------------------------------------+
| Assigned To: ant-dev@jakarta.apache.org |
| Reported By: ggregory@seagullsw.com |
--- 2,11 ----
| Target element description attribute does not support ${name} |
+----------------------------------------------------------------------------+
| Bug #: 1918 Product: Ant |
! | Status: RESOLVED Version: Nightly build |
! | Resolution: WONTFIX Platform: PC |
! | Severity: Normal OS/Version: All |
! | Priority: High Component: Core |
+----------------------------------------------------------------------------+
| Assigned To: ant-dev@jakarta.apache.org |
| Reported By: ggregory@seagullsw.com |
***************
*** 39,42 ****
Not very interesting.
! Gary
--- 39,76 ----
Not very interesting.
! Gary
!
! ------- Additional Comments From glennm@apache.org 2001-07-04 10:16 -------
! Hmm... lets think about property expansion in descriptions. Why do
! you want it? Nominally, to reflect what is happening in the target based on
! what are effectively parameters to the target. What happens when I
! have
!
! <property name="funky.stuff" value="use your imagination" />
! <property name="sucker" value="someone you don't like" />
!
! <target name="do_this" description="Do ${funky.stuff} to ${sucker}.">
! ...
! </target>
!
! <target name="call_do_this">
! <antcall target="do_this">
! <param name="funky.stuff" value="throw chickens at" />
! <param name="sucker" value="your boss" />
! </antcall>
! </target>
!
! with ant -projecthelp you get
!
! do_this Do use your imagination to someone you don't like
!
! but in reality you mean
!
! do_this Do throw chickens at to your boss
!
!
! Ok, the English grammer sucks, but you get the point. I'd argue that having the
! property names unexpanded in the description are more useful than
! having the potentially incorrect information - at least you know which
! properties are involved in the target.