You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by Willem Verstraeten <wi...@gmail.com> on 2009/09/24 15:13:44 UTC
"all confs except x" in ivy.xml
Hello,
Is it possible in the ivy.xml file to declare a dependency that should
be included in all configurations except a single one. For instance,
something like
<dependency org="mycorp.com" module="common" conf="*, !external" />
Kind regards,
Willem
Re: "all confs except x" in ivy.xml
Posted by Willem Verstraeten <wi...@gmail.com>.
Is it also possible to do this without specifying a mapping ? Ie. I
have a defaultconfmapping setup in the configurations section of the
ivy.xml file, so in the dependency I just want to specify
<dependency org="mycorp.com" module="common" conf="*, !external" />
Ie. only the names of the confs, without the arrow.
This does not seem to work in 2.1.0-rc2, but perhaps I am missing something ?
Willem
2009/9/29 Tom Widmer <to...@googlemail.com>:
> Willem Verstraeten wrote:
>>
>> Hello,
>>
>> Is it possible in the ivy.xml file to declare a dependency that should
>> be included in all configurations except a single one. For instance,
>> something like
>>
>> <dependency org="mycorp.com" module="common" conf="*, !external" />
>
> That looks right.
> "since 1.4 you can use * wildcard followed by negated configurations to mean
> all but xxx. For instance, '*, !A, !B -> X' means that X dependency
> configuration is required in all master configurations except A and B."
> See
> http://ant.apache.org/ivy/history/latest-milestone/ivyfile/dependency.html
>
> Tom
>
>
Re: "all confs except x" in ivy.xml
Posted by Tom Widmer <to...@gmail.com>.
Willem Verstraeten wrote:
> Is it also possible to do this without specifying a mapping ? Ie. I
> have a defaultconfmapping setup in the configurations section of the
> ivy.xml file, so in the dependency I just want to specify
>
> <dependency org="mycorp.com" module="common" conf="*, !external" />
Implicitly, that usually means:
<dependency org="mycorp.com" module="common"
conf="*, !external->default" />
> Ie. only the names of the confs, without the arrow.
>
> This does not seem to work in 2.1.0-rc2, but perhaps I am missing something ?
It's probably a bug, but if the above works you've got a workaround.
Tom
Re: "all confs except x" in ivy.xml
Posted by Tom Widmer <to...@googlemail.com>.
Willem Verstraeten wrote:
> Hello,
>
> Is it possible in the ivy.xml file to declare a dependency that should
> be included in all configurations except a single one. For instance,
> something like
>
> <dependency org="mycorp.com" module="common" conf="*, !external" />
That looks right.
"since 1.4 you can use * wildcard followed by negated configurations to
mean all but xxx. For instance, '*, !A, !B -> X' means that X dependency
configuration is required in all master configurations except A and B."
See
http://ant.apache.org/ivy/history/latest-milestone/ivyfile/dependency.html
Tom