Manage your Java environment
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

23 lines
471 B

#!/usr/bin/env bash
# Summary: Show the current Java options
# Usage: jenv options
set -e
[ -n "$JENV_DEBUG" ] && set -x
if [ -z "$JENV_OPTIONS" ]; then
JENV_OPTIONS_FILE="$(jenv-options-file)"
JENV_OPTIONS="$(jenv-options-file-read "$JENV_OPTIONS_FILE" || true)"
fi
if [ -z "$JENV_OPTIONS" ] ; then
echo ""
exit
fi
if [ "$1" = "--verbose" ] ; then
echo "$JENV_OPTIONS (set by $(jenv-options-origin))"
else
echo "$JENV_OPTIONS"
fi;