#!/bin/sh


javaHome="%JAVA_HOME%"


printUsage()
{
	cat <<EOF
Usage: java-config <option>
Print java configuration values.

Options:
  -h, --help  - Print this help text.
  -H          - Print Java home path.
EOF
}


if [ $# -ne 1 ]; then
	printUsage >&2
	exit 1
fi

case "$1" in
	-H)
		echo $javaHome
		;;
	-h|--help)
		printUsage
		exit 0
		;;
	*)
		printUsage >&2
		exit 1
		;;
esac
