Yes, I think you have the right approach.  But I would rather do a separate
resolve with all confs before, so that only one resolve is done.


Gilles 


> -----Original Message-----
> From: Saloucious [mailto:[EMAIL PROTECTED]
> Sent: vendredi 18 mai 2007 14:54
> To: [email protected]
> Subject: Ant task : pattern and conf
> 
> 
> Hi,
> 
> I would like to retrieve my dependencies with ivy:retrieve task anyway i'm
> faced a problem and don't not which is the best solution.
> Indeed is there a way to specify  a type only for a conf :
> 
> <ivy-retrieve pattern="pattern"  type="jar,bundle,ejb"
> conf="buildtime,runtime,ext"/>
> 
> Here I would like that ejb type be handle only by ext conf, actully  if in
> my ivy file i've got a dependency in buildtime with 2 types on repository,
> ivy retrieves dependencies in jar and ejb too.
> 
> May be this is the solution, is a well design ?
> <property name="pattern"
> value="${lib.dir}/[conf]/[artifact]-[revision].[ext]"/>
> <ivy-retrieve pattern="${pattern}"  type="jar,bundle"
> conf="buildtime,runtime"/>
> <ivy-retrieve pattern="${pattern}"  type="ejb" conf="ext"/>
> 
> Thanks
> 
> --
> View this message in context: http://www.nabble.com/Ant-task-%3A-pattern-
> and-conf-tf3777525.html#a10681609
> Sent from the ivy-user mailing list archive at Nabble.com.

Reply via email to