Add CLASSPATH elements back to spring CLI script

Also add @WebConfiguration as a shortcut for groovy
scripts to get MVC behaviour (without a @Controller)

[#54926366]
This commit is contained in:
Dave Syer
2013-08-12 15:40:19 +01:00
parent 8e347cddff
commit 0d583deb27
3 changed files with 33 additions and 2 deletions

View File

@@ -79,7 +79,13 @@ if [ ! -d "${SPRING_HOME}" ]; then
exit 2
fi
CLASSPATH="${SPRING_HOME}/lib/*"
CLASSPATH=.:${SPRING_HOME}/bin
if [ -d ${SPRING_HOME}/ext ]; then
CLASSPATH=$CLASSPATH:${SPRING_HOME}/ext
fi
for f in ${SPRING_HOME}/lib/*; do
CLASSPATH=$CLASSPATH:$f
done
if $cygwin; then
SPRING_HOME=`cygpath --path --mixed "$SPRING_HOME"`