ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: passing a Collection as paramater
Date Tue, 05 Feb 2002 18:30:56 GMT
No, that won't do it.  I'm not sure what the simplest task is to look at
that takes this construct, but there are many.... so just dig into Ant's
source code and look at similar tasks.  I could give you the answer, but
that'd be no fun!  (but then I'd have to go dig it up and cut and paste it
too)


----- Original Message -----
From: "Marchioni Francesco" <francesco.marchioni@consulenti.fastweb.it>
To: "'Ant Users List'" <ant-user@jakarta.apache.org>
Sent: Tuesday, February 05, 2002 12:54 PM
Subject: RE: passing a Collection as paramater


hi thanks Erik...I'll check....
maybe mapping the parameter "url" as "Collection" in my Task will do the
trick????
thanks
Francesco

-----Original Message-----
From: Erik Hatcher [mailto:jakarta-ant@ehatchersolutions.com]
Sent: martedì 5 febbraio 2002 18.57
To: Ant Users List
Subject: Re: passing a Collection as paramater


Use this kind of syntax:

  <mytask>
    <url href=""/>
    .
    .
    .
    <url href=""/>
  </mytask>

Check Ant's source code for similar syntaxed tasks for the implementation
details.

    Erik

----- Original Message -----
From: "Marchioni Francesco" <francesco.marchioni@consulenti.fastweb.it>
To: <ant-user@jakarta.apache.org>
Sent: Tuesday, February 05, 2002 12:41 PM
Subject: passing a Collection as paramater


> Hi all,
> I'd like to know if it's possible to pass a Collection of parameters to my
> Own Task.
> At the moment I need to pass a list or urls to the Task in this way......
>
> <property name="url1" value="http://....."/>
> <property name="url2" value="http://....."/>
> <property name="url3" value="http://....."/>
>
>   <taskdef name="mytask" classname="BeanTask"/>
>
>     <mytask url1="${url1}" url2="${url2}" url3="${url3}"
>     </mytask>
>
> ...but as the url can grow up I'd rather find a way to pass a Collection
of
> elements
> to the bean. Does anybody know how to do it?
> Thanks
> Francesco
>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
>


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

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




--
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