From 33ff2407e442380ca9db37c6f11083ee821766c7 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Wed, 25 Oct 2017 13:22:52 +0200 Subject: [PATCH] Add a note about env variables and Microsoft Windows Closes gh-10727 --- spring-boot-docs/src/main/asciidoc/spring-boot-cli.adoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spring-boot-docs/src/main/asciidoc/spring-boot-cli.adoc b/spring-boot-docs/src/main/asciidoc/spring-boot-cli.adoc index c6225833a6a..678f2465c97 100644 --- a/spring-boot-docs/src/main/asciidoc/spring-boot-cli.adoc +++ b/spring-boot-docs/src/main/asciidoc/spring-boot-cli.adoc @@ -117,7 +117,9 @@ To set JVM command line arguments you can use the `JAVA_OPTS` environment variab $ JAVA_OPTS=-Xmx1024m spring run hello.groovy ---- - +NOTE: When setting `JAVA_OPTS` on Microsoft Windows, make sure to quote the entire +instruction such as `set "JAVA_OPTS=-Xms256m -Xmx2048m"`. This will ensure the values +are passed properly to the process. [[cli-deduced-grab-annotations]] ==== Deduced "`grab`" dependencies