ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From George Spalding <georgespald...@yahoo.com>
Subject Use of task attribute id
Date Tue, 19 Nov 2002 14:59:59 GMT

In ant documentation there is a description of
Common Attributes of all Tasks.
There's an attribute id that is
"a Unique identifier for this task instance, can be used to reference
this task in scripts. "

I'm very curious of how this can be used. I get the impression it can
be used as shorthand for calling defined tasks or something.
I've fiddled with stuff such as this 
(with no success, needless to say :|  ):

<target name="atest" id="test1">
  <echo id="test.echo" message="The test."/>
</target>
<target name="wontwork">
  <test1 />
  <antcall target="test1"/>
  <test.echo />
  <antcall target="test.echo"/>
</target>

What is the use of the general id attribute? I know of the id/refid
mechanism for patternsets, filesets etc, can it be used for other
types as well?
/George

=====
-\|/-/|\-\|/-/|\-\|/-/|\-\|/-/|\-\|/-/|\-\|/-
George Spalding
Private:      georgespalding@yahoo.com
Phone:
Mobile: +46 701 849 507
Home:   +46 8 21 36 59
-/|\-\|/-/|\-\|/-/|\-\|/-/|\-\|/-/|\-/|\-\|/-

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message