New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Oracle Java 8 #1080

Merged
merged 9 commits into from Oct 17, 2014

Conversation

Projects
None yet
2 participants
@marko-asplund
Contributor

marko-asplund commented Sep 6, 2014

issue #1048

@@ -0,0 +1,20 @@
#!/bin/bash

This comment has been minimized.

@hamiltont

hamiltont Sep 6, 2014

Contributor

Could you add the standard RETCODE bit, so that back-to-back calls of this file don't cause fairly large delays while we re-run apt-get for no reason.

Note: Instead of return 0, you need to run update-alternatives and then return 0

@hamiltont

hamiltont Sep 6, 2014

Contributor

Could you add the standard RETCODE bit, so that back-to-back calls of this file don't cause fairly large delays while we re-run apt-get for no reason.

Note: Instead of return 0, you need to run update-alternatives and then return 0

@hamiltont

This comment has been minimized.

Show comment
Hide comment
@hamiltont

hamiltont Sep 6, 2014

Contributor

Looks exciting! I've asked for some minor changes above. In addition, could you also

  • Add a small README here explaining that Java-based framewroks can use either fw_depends java (for orackel java 7) or fw_depends java8 for oracle java 8. Explain what the binaries are called (e.g. for java 7 most people call the java binary, should they do the same for java 8 or is it named differently?)
  • Update java.sh to run update-alternatives and switch back to java-7 if necessary
  • Is there any java-based framework you feel comfortable updating to java8? That way we could see if Travis-CI green-lights these changes

I'm very glad to see this being added!

Contributor

hamiltont commented Sep 6, 2014

Looks exciting! I've asked for some minor changes above. In addition, could you also

  • Add a small README here explaining that Java-based framewroks can use either fw_depends java (for orackel java 7) or fw_depends java8 for oracle java 8. Explain what the binaries are called (e.g. for java 7 most people call the java binary, should they do the same for java 8 or is it named differently?)
  • Update java.sh to run update-alternatives and switch back to java-7 if necessary
  • Is there any java-based framework you feel comfortable updating to java8? That way we could see if Travis-CI green-lights these changes

I'm very glad to see this being added!

@marko-asplund

This comment has been minimized.

Show comment
Hide comment
@marko-asplund

marko-asplund Sep 8, 2014

Contributor

@hamiltont AFAIK, I think this PR should be ok now.

I updated servlet3-cass in my local dev env to use java8. The tests seemed to be fine, but then I ran into some problems with Travis CI (see #1082) before committing these changes. I need to figure out what's causing the CI build to fail before updating the test implementation for Java 8.

Contributor

marko-asplund commented Sep 8, 2014

@hamiltont AFAIK, I think this PR should be ok now.

I updated servlet3-cass in my local dev env to use java8. The tests seemed to be fine, but then I ran into some problems with Travis CI (see #1082) before committing these changes. I need to figure out what's causing the CI build to fail before updating the test implementation for Java 8.

@hamiltont

This comment has been minimized.

Show comment
Hide comment
@hamiltont

hamiltont Sep 8, 2014

Contributor

Cool. I'm out for the next few months, have a degree to prioritize. One of
the TE team can check this for you

Contributor

hamiltont commented Sep 8, 2014

Cool. I'm out for the next few months, have a degree to prioritize. One of
the TE team can check this for you

@marko-asplund

This comment has been minimized.

Show comment
Hide comment
@marko-asplund

marko-asplund Oct 17, 2014

Contributor

@hamiltont Java 8 PR updated and merged with latest upstream master branch.

Contributor

marko-asplund commented Oct 17, 2014

@hamiltont Java 8 PR updated and merged with latest upstream master branch.

@hamiltont

This comment has been minimized.

Show comment
Hide comment
@hamiltont

hamiltont Oct 17, 2014

Contributor

Cool, let's see what Travis has to say about it!

Note to self: see here

Contributor

hamiltont commented Oct 17, 2014

Cool, let's see what Travis has to say about it!

Note to self: see here

@marko-asplund

This comment has been minimized.

Show comment
Hide comment
@marko-asplund

marko-asplund Oct 17, 2014

Contributor

This PR just adds a README + Java 8 installations script, so Travis shouldn't fail due to this. While I've tested this in my development sandbox and it seems to work, no test implementations have been updated to use Java 8, yet. I'm planning to do this as part of a separate PR.

Contributor

marko-asplund commented Oct 17, 2014

This PR just adds a README + Java 8 installations script, so Travis shouldn't fail due to this. While I've tested this in my development sandbox and it seems to work, no test implementations have been updated to use Java 8, yet. I'm planning to do this as part of a separate PR.

@hamiltont

This comment has been minimized.

Show comment
Hide comment
@hamiltont

hamiltont Oct 17, 2014

Contributor

Oh, ok. Then there's nothing to wait on for this PR I guess. Visual inspection LGTM, I'll go ahead and merge this and look forward to a PR actually using it

Contributor

hamiltont commented Oct 17, 2014

Oh, ok. Then there's nothing to wait on for this PR I guess. Visual inspection LGTM, I'll go ahead and merge this and look forward to a PR actually using it

hamiltont added a commit that referenced this pull request Oct 17, 2014

Merge pull request #1080 from marko-asplund/issue-1048
Java: Add support for Oracle Java 8

@hamiltont hamiltont merged commit 2a7b21f into TechEmpower:master Oct 17, 2014

1 check was pending

continuous-integration/travis-ci The Travis CI build is in progress
Details
@marko-asplund

This comment has been minimized.

Show comment
Hide comment
@marko-asplund

marko-asplund Oct 17, 2014

Contributor

great, thanks!

Issue #1048 is basically a duplicate of this, so it can be closed as well.
(this one was created because I couldn't figure how to associate my PR with the existing issue)

Contributor

marko-asplund commented Oct 17, 2014

great, thanks!

Issue #1048 is basically a duplicate of this, so it can be closed as well.
(this one was created because I couldn't figure how to associate my PR with the existing issue)

@hamiltont hamiltont referenced this pull request Oct 17, 2014

Closed

Enable Java8 #1048

@hamiltont

This comment has been minimized.

Show comment
Hide comment
@hamiltont

hamiltont Oct 17, 2014

Contributor

@marko-asplund just to be clear, there's no reason that a framework cannot use fw_depends java java8 to install both, and then just use a full path to the binary they want, right?

Perhaps we should add that to the readme, or I predict a lot of duplicated folders (e.g. java-stuffand java-stuff-java8)

Contributor

hamiltont commented Oct 17, 2014

@marko-asplund just to be clear, there's no reason that a framework cannot use fw_depends java java8 to install both, and then just use a full path to the binary they want, right?

Perhaps we should add that to the readme, or I predict a lot of duplicated folders (e.g. java-stuffand java-stuff-java8)

@marko-asplund

This comment has been minimized.

Show comment
Hide comment
@marko-asplund

marko-asplund Oct 17, 2014

Contributor

Yes, that should be totally ok.
The Java 8 installation script tries hard to retain OpenJDK 7 as the default instead of Oracle JDK 8.

Contributor

marko-asplund commented Oct 17, 2014

Yes, that should be totally ok.
The Java 8 installation script tries hard to retain OpenJDK 7 as the default instead of Oracle JDK 8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment