@@ -49,7 +49,7 @@ dependencies after compiling your code.
49
49
You need to run the task ` jshell ` with the options ` --no-daemon --console plain ` .
50
50
Following is an example:
51
51
52
- $ gradle --no-daemon -- console plain jshell
52
+ $ gradle --console plain jshell
53
53
54
54
Startup options
55
55
---------------
@@ -84,7 +84,7 @@ the startup script path with the project property
84
84
or set the same property in the command line
85
85
arguments, like:
86
86
87
- $ gradle --no-daemon -- console plain jshell -Pjshell.startup=/path/to/run.jsh
87
+ $ gradle --console plain jshell -Pjshell.startup=/path/to/run.jsh
88
88
89
89
90
90
Troubleshooting
@@ -102,7 +102,7 @@ the project, some times is the same `classes` task but is not detected
102
102
in multi-modules projects, so you need to add it explicitly in the
103
103
Gradle command:
104
104
105
- $ gradle --no-daemon -- console plain classes jshell
105
+ $ gradle --console plain classes jshell
106
106
107
107
### I have a JDK 9+ installation but my default JDK is the JDK 8 or below
108
108
@@ -126,6 +126,17 @@ file like: `alias setjava9='export JAVA_HOME=/System/Library/Java/...'`
126
126
to later switch easily to the other distribution calling
127
127
` setjava9 ` .
128
128
129
+ ### Gradle output is print with the jshell output in the console
130
+
131
+ If content like ` <-------------> 0% EXECUTING [16s] ` is mixed
132
+ in the console with the jshell output each time you try
133
+ to execute something within the jshell console, remember to pass
134
+ the option ` --console plain ` to the gradle command, but if
135
+ the output continues mixed up with Gradle messages, try
136
+ adding the option ` --no-daemon ` to start up the jshell:
137
+
138
+ $ gradle --no-daemon --console plain jshell
139
+
129
140
130
141
System Requirements
131
142
-------------------
0 commit comments