Skip to content

Commit 33ff240

Browse files
committed
Add a note about env variables and Microsoft Windows
Closes gh-10727
1 parent 8df5833 commit 33ff240

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spring-boot-docs/src/main/asciidoc/spring-boot-cli.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ To set JVM command line arguments you can use the `JAVA_OPTS` environment variab
117117
$ JAVA_OPTS=-Xmx1024m spring run hello.groovy
118118
----
119119

120-
120+
NOTE: When setting `JAVA_OPTS` on Microsoft Windows, make sure to quote the entire
121+
instruction such as `set "JAVA_OPTS=-Xms256m -Xmx2048m"`. This will ensure the values
122+
are passed properly to the process.
121123

122124
[[cli-deduced-grab-annotations]]
123125
==== Deduced "`grab`" dependencies

0 commit comments

Comments
 (0)