diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/install/InstallCommand.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/install/InstallCommand.java index 6edab81823..647a8e5c77 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/install/InstallCommand.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/install/InstallCommand.java @@ -140,6 +140,7 @@ public class InstallCommand extends OptionParsingCommand { for (URL url : urlsToProcess) { File file = toFile(url); + Log.info("Processing: " + file); if (file.getName().endsWith(".jar")) { processor.processFile(file); } @@ -181,7 +182,8 @@ public class InstallCommand extends OptionParsingCommand { finally { stream.close(); } - return file.getAbsolutePath(); + // Windows paths get tricky unless you work with URI + return file.getAbsoluteFile().toURI().toString(); } private static File getDefaultLibDirectory() {