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 Shawn Castrianni <Sh...@halliburton.com> on 2008/09/02 07:49:41 UTC
conditional dependency
I would like to programmatically turn on or off a dependency line in an ivy.xml file. I was trying the simple conditions supported by the configuration mapping syntax in the dependency element. I can't seem to get it right. Basically, I would like to set an ANT or IVY property such that it enables or disables the entire dependency line in the ivy.xml file. Is this possible?
---
Shawn Castrianni
----------------------------------------------------------------------
This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.
Re: conditional dependency
Posted by Gilles Scokart <gs...@gmail.com>.
What you can do is using some specific configurations for your
optional dependencies. Then, you can ask for only some of those
optional configurations in your build script.
2008/9/2 Shawn Castrianni <Sh...@halliburton.com>:
> I would like to programmatically turn on or off a dependency line in an ivy.xml file. I was trying the simple conditions supported by the configuration mapping syntax in the dependency element. I can't seem to get it right. Basically, I would like to set an ANT or IVY property such that it enables or disables the entire dependency line in the ivy.xml file. Is this possible?
>
> ---
> Shawn Castrianni
>
> ----------------------------------------------------------------------
> This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.
--
Gilles Scokart
Re: conditional dependency
Posted by Xavier Hanin <xa...@gmail.com>.
On Tue, Sep 2, 2008 at 7:49 AM, Shawn Castrianni <
Shawn.Castrianni@halliburton.com> wrote:
> I would like to programmatically turn on or off a dependency line in an
> ivy.xml file. I was trying the simple conditions supported by the
> configuration mapping syntax in the dependency element. I can't seem to get
> it right.
Indeed, conditional conf mapping is very limited, and badly documented.
There is no doc about what can be used in the expression, and this is very
limited, so I'm not surprised you didn't get it to work.
> Basically, I would like to set an ANT or IVY property such that it enables
> or disables the entire dependency line in the ivy.xml file. Is this
> possible?
No, not without implementing your own parser to implement this logic
yourself. But I think there is an open issue asking for such a feature, you
can vote for it. You can also open an issue asking for improving the
conditional configuration feature.
Xavier
>
>
> ---
> Shawn Castrianni
>
> ----------------------------------------------------------------------
> This e-mail, including any attached files, may contain confidential and
> privileged information for the sole use of the intended recipient. Any
> review, use, distribution, or disclosure by others is strictly prohibited.
> If you are not the intended recipient (or authorized to receive information
> for the intended recipient), please contact the sender by reply e-mail and
> delete all copies of this message.
--
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/