On 2/8/07, Steve Loughran <[EMAIL PROTECTED]> wrote:

Kevin Jackson wrote:
> Hi,
>
> Just (finally) got time to check out the ivy codebase and start poking
> around.
>
> What version of Java is it supposed to be compatible with?  I'm making
> an assumption that it should really be as compatible as Ant is
> (jdk1.2+), but I'd like confirmation.

Actually, this reminds me of a related problem.

is there any way to make a module/dependency conditional on, say, a JDK
version.


No, there's no simple way to do that, except using a configuration as
suggested by Gilles, but in this case you have to pass the configuration
everywhere: if A depends on B which depends on C, and C has a conditional
dependency, you will need to expose this condition on B and A, which is not
really simple.

So I think we should think of a way to do that, and do not restrict only to
jdk version, but also OS or anything else. Using a condition like you
express could be very flexible if in the condition we can use any variable.
We could also see if the concept of profile used in maven could fit in this
picture, so that we could improve maven compatibility.

- Xavier

At work the core app and most of the libraries build on java1.4, but I
have some extras that need java 5, and am debating a java6 library to
get the extra features there (file system permissions, built in http
server)

I can't include these dependencies in our release module because they
are only buildable on java1.5 and 1.6; it screws up people building on
java1.4.

is there anything like

<depends module="sf-java6-stuff" if="jdk1.6+" />

Reply via email to