Skip to content

Commit c17d52b

Browse files
authored
Improve instructions
1 parent 4f74fe9 commit c17d52b

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,21 @@ Invoking `gradlew` will automatically download and install Gradle.
77
Gradle will also install all additional libraries necessary to compile
88
and run the Java examples in the book.
99

10-
To compile everything, the command is:
10+
To compile and run everything, the command is:
1111

12-
`gradlew classes`
12+
`gradlew run`
1313

14-
To run everything (including compiling if necessary), the command is:
14+
If you are on a Unix/Linux based system, you must select the local directory for all commands, for example:
1515

16-
`gradlew run`
16+
`./gradlew run`
17+
18+
To only compile everything, the command is:
19+
20+
`gradlew compileJava`
1721

1822
To compile only a single chapter (including dependencies), use for example:
1923

20-
`gradlew :strings:classes`
24+
`gradlew :strings:compileJava`
2125

2226
To run only a single chapter, say:
2327

@@ -33,7 +37,7 @@ program name, like this:
3337

3438
`gradlew ReplacingStringTokenizer`
3539

36-
Note that all these commands are run from the base directory where the example code is installed, and where you find the
40+
Note that all commands are run from the base directory where the example code is installed, and where you find the
3741
`gradlew` script.
3842

3943
You can learn about other options by just typing `gradlew` with no arguments.

0 commit comments

Comments
 (0)