Return-Path: Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 25094 invoked by uid 500); 20 Aug 2003 16:00:59 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 24786 invoked from network); 20 Aug 2003 16:00:49 -0000 Received: from relay.t-intra.de (HELO relay.t-online-com.de) (62.156.147.74) by daedalus.apache.org with SMTP; 20 Aug 2003 16:00:49 -0000 Received: from DJ0X820J (p5080e383.dip0.t-ipconnect.de [80.128.227.131]) by relay.t-online-com.de (SMTPSVC(1.0.0.2)) with ESMTP id 83AD814CA88 for ; Wed, 20 Aug 2003 17:57:42 +0200 (CEST) Message-ID: <0dfa01c36734$4b8bcf80$020200c0@DJ0X820J> From: "Antoine Levy-Lambert" To: "Ant Developers List" References: <747F247264ECE34CA60E323FEF0CCC0C0F512D@london.cellectivity.com> <007b01c36722$752c6aa0$eb6266c2@andrei> Subject: Re: Nested elements Date: Wed, 20 Aug 2003 18:01:19 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N You should ask help from the person who wrote the uni-d task. The source code of uni-d task should have an addConfig method. There should be a datatype config corresponding to what you have in the config section. The source code for config should have an addAttribute method There should also be a datatype attribute. You also need to do typedefs for attribute and config so that ant understands these special datatypes. Cheers, Antoine ----- Original Message ----- From: "Andrei" To: "Ant Developers List" Sent: Wednesday, August 20, 2003 3:53 PM Subject: Nested elements > I have a task called uni-d > > > classname="be.unid.generate.AntTask" > classpath="${unid.dir}/uni-d.jar" > classpathref="task.path" > /> > > > and here i use it: > > > appdir="D:\Work\Uni-D\test\src\uni-d" > definition="test1.xml" > outputdir="../../build/src" > spackage="be.unid.test.om" > template="xejb"> > name="extra"> > > > > > > This task add's the values for attributes: > appdir; definition; outputdir; spackage; template in the > config section of a ini file. The problem is that i have to create another > section in the ini file named extra and add the values for the parameters > datasource and jndi in the extra section of ini file. For this purpose i > must use the sintax in as you can se above: > > name="extra"> > > > > > > How can i do that? > > > Andrei > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org > For additional commands, e-mail: dev-help@ant.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org