[bs-73] Anonymous classes cannot be used in @Bean definitions in .groovy scripts

* Added a test for each of the classes loaded by the SpringApplication
* If it's an anonymous class or looks like a Groovy closure we ignore it
* The CLI sample job.groovy also modified to take advantage

[Fixes #48718891]
This commit is contained in:
Dave Syer
2013-04-25 16:02:44 +01:00
parent 737886e4da
commit a2d328ae3a
6 changed files with 82 additions and 33 deletions

View File

@@ -71,4 +71,4 @@ if $cygwin; then
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
fi
${JAVA_HOME}/bin/java -cp "$CLASSPATH" org.springframework.bootstrap.cli.SpringBootstrapCli $*
${JAVA_HOME}/bin/java ${JAVA_OPTS} -cp "$CLASSPATH" org.springframework.bootstrap.cli.SpringBootstrapCli $*