Skip to content
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

Expand the java home argument #822

Merged
merged 3 commits into from
Jun 24, 2016
Merged

Conversation

cquiroz
Copy link
Contributor

@cquiroz cquiroz commented Jun 23, 2016

This PR is related to #816 and it changes the bash launcher to expand variables inside the java-home variable. This lets you build self-contained tarballs that contain the jre and use it to launch the application

With this PR you can define, e.g.

-java-home ${app_home}/../jre and the app_home variable will be resolved

A test is included, execute with

scripted bash/java-home-override

The updated launcher has been tested with bash 3.2.7 in OSX and bash 4.1.2 in CentOS 6

If this is accepted I would provide documentation for the website too

@lightbend-cla-validator

Hi @cquiroz,

Thank you for your contribution! We really value the time you've taken to put this together.

Before we proceed with reviewing this pull request, please sign the Typesafe Contributors License Agreement:

http://www.lightbend.com/contribute/cla

@muuki88 muuki88 added the universal Zip, tar.gz, tgz and bash issues label Jun 23, 2016
@muuki88
Copy link
Contributor

muuki88 commented Jun 23, 2016

Thanks for the pull request. Code LGTM. +1 for the test.

You can add some docs and then this is good to merge :)

@cquiroz
Copy link
Contributor Author

cquiroz commented Jun 23, 2016

Added documentation on the new option and a recipe for embedding the JVM

@muuki88 muuki88 merged commit 97d315e into sbt:master Jun 24, 2016
@muuki88
Copy link
Contributor

muuki88 commented Jun 24, 2016

Thanks :) Keep up the high quality for you pull request 👍

@cquiroz cquiroz deleted the java-home-expansion branch June 29, 2016 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
universal Zip, tar.gz, tgz and bash issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants