Yedidyah Bar David has uploaded a new change for review. Change subject: packaging: bin: Use engine's java-home for classpath ......................................................................
packaging: bin: Use engine's java-home for classpath Change-Id: I2e9fabfc09629a6f188526e836badc5508752156 Signed-off-by: Yedidyah Bar David <d...@redhat.com> (cherry picked from commit 0afae9647008faff7e7eb5ac70c62fc7b4c667de) --- M packaging/bin/dwh-classpath.sh 1 file changed, 5 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-dwh refs/changes/59/36759/1 diff --git a/packaging/bin/dwh-classpath.sh b/packaging/bin/dwh-classpath.sh index 1aa919b..1e78354 100755 --- a/packaging/bin/dwh-classpath.sh +++ b/packaging/bin/dwh-classpath.sh @@ -22,6 +22,11 @@ *) die "Invalid usage";; esac +if [ -z "${JAVA_HOME}" ]; then + JAVA_HOME="$(/usr/share/ovirt-engine/bin/java-home)" + export JAVA_HOME +fi + if [ -x /usr/bin/java-config ]; then PACKAGES_BUILD="dom4j-1 commons-collections" PACKAGES_RUNTIME="jdbc-postgresql" -- To view, visit http://gerrit.ovirt.org/36759 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I2e9fabfc09629a6f188526e836badc5508752156 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-dwh Gerrit-Branch: ovirt-engine-dwh-3.5 Gerrit-Owner: Yedidyah Bar David <d...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches