From 1a6938773d7e2c763e43dc831495166c635e6d7d Mon Sep 17 00:00:00 2001 From: Bruce Eckel Date: Tue, 2 Aug 2016 15:52:30 -0600 Subject: [PATCH] Update README.md --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 8eb51ece..a179d870 100644 --- a/README.md +++ b/README.md @@ -18,3 +18,16 @@ To compile only a single chapter (including dependencies), use for example: To run only a single chapter, say: `gradlew :strings:run` + +Gradle can also be used to run a single program. Here, we run the **ReplacingStringTokenizer.java** +program in the **strings** chapter subdirectory: + +`gradlew :strings:ReplacingStringTokenizer` + +However, if the file name is unique throughout the book (the majority are), you can just give the +program name, like this: + +`gradlew ReplacingStringTokenizer` + +Note that all these commands are run from the base directory where the example code is installed, and where you find the +`gradlew` script.