ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: Nested elements
Date Thu, 21 Aug 2003 04:59:58 GMT
(I hate cross-postings ...)
http://marc.theaimsgroup.com/?l=ant-dev&m=106139453324476&w=2
http://marc.theaimsgroup.com/?l=ant-user&m=106139721928000&w=2

So much work to keep the two threads in sync ...


Jan



> -----Original Message-----
> From: Antoine Levy-Lambert [mailto:antoine@antbuild.com]
> Sent: Wednesday, August 20, 2003 6:01 PM
> To: Ant Developers List
> Subject: Re: Nested elements
> 
> 
> 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" <andrei@netrom.ro>
> To: "Ant Developers List" <dev@ant.apache.org>
> Sent: Wednesday, August 20, 2003 3:53 PM
> Subject: Nested elements
> 
> 
> >         I have a task called uni-d
> >
> >     <target name="UniDTask">
> >        <taskdef name="uni-d"
> >            classname="be.unid.generate.AntTask"
> >            classpath="${unid.dir}/uni-d.jar"
> >            classpathref="task.path"
> >           />
> >      </target>
> >
> > and here i use it:
> >
> >     <target name="task" depends="UniDTask">
> >         <uni-d
> >             appdir="D:\Work\Uni-D\test\src\uni-d"
> >             definition="test1.xml"
> >             outputdir="../../build/src"
> >             spackage="be.unid.test.om"
> >             template="xejb">
> >             <config
> >                 name="extra">
> >                 <attribute name="datasource" 
> value="java:/ICtraceDS"/>
> >                 <attribute jndi="IC-trace"/>
> >             </config>
> >         </uni-d>
> >
> > 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:
> >
> >             <config
> >                 name="extra">
> >                 <attribute name="datasource" 
> value="java:/ICtraceDS"/>
> >                 <attribute jndi="IC-trace"/>
> >             </config>
> >
> >
> > 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
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message