ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niklas Matthies <ml_ivy-u...@nmhq.net>
Subject Re: multiple artifact confs: wanting AND instead of OR
Date Tue, 28 Jul 2009 14:14:48 GMT
On Mon 2009-07-27 at 21:17h, Mitch Gitman wrote on ivy-user:
:
> The problem is you can't specify the intersection on the artifacts:
>   <artifact name="mocha-short-hot" type="jar" conf="mocha+short+hot" />
> 
> The onus is on the consumer (the dependent Ivy module) to specify the
> intersection and not the union.

Which, by the way, is dangerous, because the published module has no
way to specify which intersections are expected to work and which
don't. It's a bit analogous to intersecting two class implementations
because you only need their common interface, and hoping that this
intersection still works in any sensible way.

It also doesn't scale to transitive dependencies, see:
http://mail-archives.apache.org/mod_mbox/ant-ivy-user/200904.mbox/%3c20090415170945.GC68410@nmhq.net%3e


Personally I wonder what the actual use cases are of having artifacts
that are only valid for a particular combination of configurations,
where an explicit combination configuration or separate modules
wouldn't be a better solution. The cute pet or the coffee drink
examples don't make any sense to me. ;)

-- Niklas Matthies

Mime
View raw message