
# We have a run-time dependency on maven collection, enable it first if not already
if ! scl_enabled rh-maven35 ; then
  if [ -z "$RPM_BUILD_ROOT" ] ; then
    . scl_source enable rh-maven35
  fi
fi

# Generic variables
export PATH="/opt/rh/rh-jmc/root/usr/bin:${PATH:-/bin:/usr/bin}"
export MANPATH="/opt/rh/rh-jmc/root/usr/share/man:${MANPATH}"

# Needed by Java Packages Tools to locate java.conf
export JAVACONFDIRS="/opt/rh/rh-jmc/root/etc/java:${JAVACONFDIRS:-/etc/java}"

# Required by XMvn to locate its configuration file(s)
export XDG_CONFIG_DIRS="/opt/rh/rh-jmc/root/etc/xdg:${XDG_CONFIG_DIRS:-/etc/xdg}"

# Not really needed by anything for now, but kept for consistency with
# XDG_CONFIG_DIRS.
export XDG_DATA_DIRS="/opt/rh/rh-jmc/root/usr/share:${XDG_DATA_DIRS:-/usr/local/share:/usr/share}"
