Skip to content

Commit 1a69387

Browse files
authored
Update README.md
1 parent 6a9bef0 commit 1a69387

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,16 @@ To compile only a single chapter (including dependencies), use for example:
1818
To run only a single chapter, say:
1919

2020
`gradlew :strings:run`
21+
22+
Gradle can also be used to run a single program. Here, we run the **ReplacingStringTokenizer.java**
23+
program in the **strings** chapter subdirectory:
24+
25+
`gradlew :strings:ReplacingStringTokenizer`
26+
27+
However, if the file name is unique throughout the book (the majority are), you can just give the
28+
program name, like this:
29+
30+
`gradlew ReplacingStringTokenizer`
31+
32+
Note that all these commands are run from the base directory where the example code is installed, and where you find the
33+
`gradlew` script.

0 commit comments

Comments
 (0)