Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cross-project-issues-dev] Java 9 Readiness

> I'm not sure that installed Java 9 is usable by projects other than Platform - bug 469515 states this and https://hudson.eclipse.org/platform/job/Generate-jdeps-report-using-java-9/uses location that doesn't look to be accessible by others,

Sorry for that. You are correct, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=469515#c4. I've opened bug 513618 requesting access for all release train projects. Until then, you can still build with Java 8 and run tests locally using Java 9.

Dani



From:        Evgeny Mandrikov <mandrikov@xxxxxxxxx>
To:        Cross project issues <cross-project-issues-dev@xxxxxxxxxxx>
Date:        13.03.2017 23:10
Subject:        Re: [cross-project-issues-dev] Java 9 Readiness
Sent by:        cross-project-issues-dev-bounces@xxxxxxxxxxx




On Mon, Mar 13, 2017 at 9:32 PM Jonah Graham <jonah@xxxxxxxxxxxxxxxx> wrote:
Are there any examples of any project's HIPP config that does this? I assume I need to set up a tycho configuration that builds with Java 8 but runs tests with Java 9.

You can do this locally or on Hudson. A Java 9 VM is installed on Hudson (bug 469515).

I'm not sure that installed Java 9 is usable by projects other than Platform - bug 469515 states this and https://hudson.eclipse.org/platform/job/Generate-jdeps-report-using-java-9/uses location that doesn't look to be accessible by others, at least it didn't worked for me.

But principle is correct: create toolchains.xml pointing to Java 9 and instruct Tycho to use it ( https://eclipse.org/tycho/sitedocs/tycho-surefire/tycho-surefire-plugin/test-mojo.html#useJDK ) instead of the one that executes Maven. We are using this in Travis to run build with Java 8, but some tests with Java 7 -  see https://github.com/eclipse/eclemma/commit/37c744f2773f8914048149f776398a287e068ecb

HTH,
Evgeny
_______________________________________________
cross-project-issues-dev mailing list
cross-project-issues-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cross-project-issues-dev



Back to the top