ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim White <...@pagesmiths.com>
Subject Re: Depending on bouncycastle
Date Tue, 23 Sep 2008 21:15:50 GMT
I think it is best to think of those as two different modules (because, 
after all, they are).

Maven added the "classifier" field to deal with that (the issue being 
that folks don't want to use different module names for JDK version 
dependency) and Ivy supports that now too.

http://www.nabble.com/Re%3A-Classifier-frustration-p16740537.html

https://issues.apache.org/jira/browse/IVY-803

You can define an Ant property in your build to supply the right "jdk15" 
or "jdk16" value for the classifier.

Jim

Benjamin Damm wrote:

> Hi ivy users,
> 
>   I've started to integrate ivy with our build process, and it is fantastic.  
> There's something I'm having trouble with, though, and that's understanding 
> how to depend on bouncycastle.  It comes in at least two flavors; one for 
> jdk15 and one for jdk16.  We have developers on both and previously had our 
> build scripts pick the right one depending on what version of java ant was 
> run under.
> 
> How to do this with ivy?  Ivy doesn't appear to have any conditional 
> dependency abilities, so I can't choose one artifact or another based on what 
> version of java I'm running.  I suppose I could generate an 
> ivy.xml "just-in-time" but I'd prefer not to.  Anyone surpassed this little 
> hurdle?
> 
> Thank you,
> -Ben
> 


Mime
View raw message