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

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