spring-boot/spring-boot-cli
Andy Wilkinson 46fc5c05e3 Work around Groovy compiler bug that can name classes incorrectly
If a source URL is added to a CompilationUnit and that source URL does
not contain any slashes, the resulting ClassNode in the AST will be
incorrectly named. For example, a URL of 'file:foo.groovy' will produce
a ClassNode named 'file:foo'. The expected name is 'foo'.

This commit works around this problem by adding any URL sources with a
file protocol to the compilation unit as File instances. Any URL sources
that do not have a file protocol continue to be added as URL instances.
Such URLs are still prone to this bug should we be dealing with one
that contains no slashes. A fix for the underlying Groovy bug will
address this possibility.

Fixes #594
2014-03-27 16:49:37 +00:00
..
samples Add more JMS sample log output 2014-02-06 15:30:32 -08:00
src Work around Groovy compiler bug that can name classes incorrectly 2014-03-27 16:49:37 +00:00
test-samples Move tests from 'samples' to 'test-samples' 2013-11-04 22:21:37 -08:00
.gitignore Refactor CLI internals for REPL shell 2014-01-15 14:03:18 -08:00
pom.xml Enable support for use of encryption in Maven's settings.xml 2014-03-25 19:23:58 +00:00