Remove . from CLI's classpath on Unix-like platforms

Previously, the spring bash script added . to the classpath but the
Windows spring.bat script did not. This commit aligns the classpath
of the two scripts by removing . from the classpath in the bash
script.

Fixes gh-19910
This commit is contained in:
Andy Wilkinson
2020-06-08 14:40:14 +01:00
parent 020a47ba3e
commit c96455f7cf

View File

@@ -99,7 +99,7 @@ if [ ! -d "${SPRING_HOME}" ]; then
exit 2
fi
CLASSPATH=.:${SPRING_HOME}/bin
CLASSPATH=${SPRING_HOME}/bin
if [ -d "${SPRING_HOME}/ext" ]; then
CLASSPATH=$CLASSPATH:${SPRING_HOME}/ext
fi