You can get similar type functionality using macrodefs... macrodef's
allow nested elements...
Mikael Sitruk wrote:
Hi
Is it possible to have a global declaration of nested element of a task and
reference them later in the container task?
For example:
I have a task mytask with nested element nestedA and nestedB that is
<mytask>
<somenestedelement/>
<nestedA>
<nestedB>
</mytask>
I would like to define <nestedA id=”a1”/> and <nestedB is=”b1”/> and then
reference them later.
That is:
<mystask>
<somenestedelement/>
<nestedA refid=”a1”/>
<nestedB refid=”b1”/>
</mystask>
Is it possible to do this?
The idea behind this is that some nested element are defined in separate ant
files, and only when I want to create an integration between the separate build
file I want to include there nested element in the task.
Note: I do not want to use separate tasks (and do antcall) because the container task (here mystask) requires to connect to a server, and I want to connect only once to the server.
10x
Mikael Sitruk
Amdocs Java Foundation
+972.9.776.1075 (desk)
AMDOCS > JF & EXTRACT TOOL
This message and the information contained herein is proprietary and
confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp
--
Scot P. Floess
27 Lake Royale
Louisburg, NC 27549
252-478-8087 (Home)
919-754-4592 (Work)
Chief Architect JPlate http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]