ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin de Dardel <benjamin.dedar...@gmail.com>
Subject Re: antlib.xml : defining taskdefs with attributes
Date Sun, 17 Oct 2010 19:03:36 GMT
Yes, this is what I was looking for !
Thanks,
Benjamin

Le 17/10/2010 19:47, Jeffrey E Care a écrit :
>
> I'm not sure that I completely understand your question, but maybe 
> <presetdef> is what you're looking for?
> ____________________________________________________________________________________________

>
> Jeffrey E. (Jeff) Care 	
> _carej@us.ibm.com_ <mailto:carej@us.ibm.com>
> IBM WebSphere Application Server 	
> WAS Release Engineering
>
>
> WebSphere Mosiac 	
> WebSphere Brandmark
>
>
>
>
> Benjamin de Dardel <benjamin.dedardel@gmail.com> wrote on 10/17/2010 
> 09:55:58 AM:
>
> > [image removed]
> >
> > antlib.xml : defining taskdefs with attributes
> >
> > Benjamin de Dardel
> >
> > to:
> >
> > dev
> >
> > 10/17/2010 09:57 AM
> >
> > Please respond to "Ant Developers List"
> >
> > Hi,
> >
> > I would like to instanciate a same task in different contexts.
> > Is there a way to define taskdef attributes ?
> >
> > For example, something like that :
> > # antlib.xml
> > <taskdef name="task1" classname="MySameTask">
> > <attribute name="context" value="context1" />
> > </taskdef>
> >
> > <taskdef name="task2" classname="MySameTask">
> > <attribute name="context" value="context2" />
> > </taskdef>
> >
> > # build.xml
> > <task1 ...>
> > <task2 ...>
> >
> > Regards,
> > Benjamin de Dardel
> >
> > ---------------------------------------------------------------------
> > 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