-
Notifications
You must be signed in to change notification settings - Fork 443
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
Parametrized java home #816
Comments
If you want to package the jre, I would recommend using the JdkPackagerPlugin. It requires java 8 on your build system, but you can easily include the jre. Regarding your bash script additions: I'm really not an expert considering bash. In my personal experience it's always a good idea to keep that bash magic as small possible. |
I'd like to produce a tarball and rpm containing the jre, it seems neither option is very well supported by I can fix this by doing my own bash launcher template but this maybe useful more generally |
Can you post your complete build configuration that is necessary to achieve this? The how to do this is definitely useful. |
This is a condensed version of my build configuration
The |
I want to make my packages (tarball and rpm) include the jre. I have managed to include the jre but I cannot make the
-java-home
parameter work correctly. I'd like to do something like-java-home ${app_home}/../jre
but the bash script doesn't support recursive variable expansion. Specifically this line
-java-home) require_arg path "$1" "$2" && java_cmd="$2/bin/java" && shift 2 ;;
Ideally
$2
could beeval
before running. I changed the script to this and it works but I cannot claim it is the best way to do it-java-home) require_arg path "$1" "$2" && jre=
eval echo $2&& java_cmd="${jre}/bin/java" && shift 2 ;;
Is there another way to go?
The text was updated successfully, but these errors were encountered: