sourcing /awips2/ant in awips2.sh for build

This commit is contained in:
mjames-upc 2016-10-12 15:06:29 -06:00
parent 33adcaac0c
commit 85eec5d972

View file

@ -124,3 +124,17 @@ fi
if [ -d /awips2/yajsw/lib/core/jna/com/sun/jna ]; then
export LD_LIBRARY_PATH=/awips2/yajsw/lib/core/jna/com/sun/jna/linux-amd64:$LD_LIBRARY_PATH
fi
if [ -d /awips2/ant ]; then
# Determine Where Ant Has Been Installed.
ANT_INSTALL=/awips2/ant
# Update The Environment.
export ANT_HOME="${ANT_INSTALL}"
# Determine If Ant Is Already Part Of The Path.
CHECK_PATH=`echo ${PATH} | grep ${ANT_INSTALL}`
if [ ! "${CHECK_PATH}" = "" ]; then
return
fi
# Ant Is Not In The Path; Add It To The Path.
export PATH="${ANT_INSTALL}/bin:${PATH}"
fi