Remove . from default classpath for cli launcher
Since "." is already on the search path for config files, it is not obviously necessary to add "." to the classpath as well.
This commit is contained in:
@@ -166,11 +166,6 @@ public class LauncherCommand extends OptionParsingCommand {
|
||||
repositoryConfiguration.add(0, new RepositoryConfiguration("local",
|
||||
new File("repository").toURI(), true));
|
||||
|
||||
String[] classpaths = { "." };
|
||||
for (String classpath : classpaths) {
|
||||
loader.addClasspath(classpath);
|
||||
}
|
||||
|
||||
if (options.has(debugOption)) {
|
||||
System.setProperty("groovy.grape.report.downloads", "true");
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
debug: true
|
||||
spring:
|
||||
cloud:
|
||||
launcher:
|
||||
|
||||
Reference in New Issue
Block a user