Skip to content

Commit 714560a

Browse files
committed
README improvements
1 parent ed3f54d commit 714560a

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ dependencies after compiling your code.
4949
You need to run the task `jshell` with the options `--no-daemon --console plain`.
5050
Following is an example:
5151

52-
$ gradle --no-daemon --console plain jshell
52+
$ gradle --console plain jshell
5353

5454
Startup options
5555
---------------
@@ -84,7 +84,7 @@ the startup script path with the project property
8484
or set the same property in the command line
8585
arguments, like:
8686

87-
$ gradle --no-daemon --console plain jshell -Pjshell.startup=/path/to/run.jsh
87+
$ gradle --console plain jshell -Pjshell.startup=/path/to/run.jsh
8888

8989

9090
Troubleshooting
@@ -102,7 +102,7 @@ the project, some times is the same `classes` task but is not detected
102102
in multi-modules projects, so you need to add it explicitly in the
103103
Gradle command:
104104

105-
$ gradle --no-daemon --console plain classes jshell
105+
$ gradle --console plain classes jshell
106106

107107
### I have a JDK 9+ installation but my default JDK is the JDK 8 or below
108108

@@ -126,6 +126,17 @@ file like: `alias setjava9='export JAVA_HOME=/System/Library/Java/...'`
126126
to later switch easily to the other distribution calling
127127
`setjava9`.
128128

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+
129140

130141
System Requirements
131142
-------------------

0 commit comments

Comments
 (0)