You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-13Lines changed: 17 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
An example application for my book [_The Java Module System_](https://www.manning.com/books/the-java-module-system?a_aid=nipa&a_bid=869915cb).
4
4
The _Service Monitor_ is an application that observes a hypothetical network of microservices by
5
5
6
-
* contacting individual services
6
+
* contacting individual services (not really, it just makes up data)
7
7
* collecting and aggregating diagnostic data into statistics
8
8
* persisting statistics
9
9
* making statistics available via REST
@@ -21,18 +21,24 @@ Other branches explore individual features of the module system:
* split package, on [compilation](../../tree/break-split-package-compilation) and [launch](../../tree/break-split-package-launch) (not properly documented)
*[reflection over internals](../../tree/break-reflection-over-internals)
34
+
* split package, on [compilation](../../tree/break-split-package-compilation) and [launch](../../tree/break-split-package-launch)
30
35
31
36
32
37
## Setup
33
38
34
-
This demo was developed against JDK 9+181 (first official version of [Java 9](http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html)).
35
-
For it to work, the Java 9 variants of `javac`, `jar`, and `java` must be available on the command line via `javac9`, `jar9`, and `java9`, e.g. by symlinking ([Linux, MacOS](https://stackoverflow.com/q/1951742/2525313), [Windows](https://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/)) them.
39
+
This demo was developed against JDK 9.0.4.
40
+
The command line scripts for shell and batch use the default commands `javac`, `jar`, and `java`.
41
+
If these commands don't refer to the Java 9 version on your system, you can enter the appropriate paths at the top of each script.
36
42
37
43
This is a multi-module Maven project, which your IDE should be able to import. If you're using Maven directly, make sure you have 3.5.0 or higher.
38
44
@@ -55,11 +61,9 @@ Need to inspect that...
55
61
56
62
### Scripts
57
63
58
-
The root directory contains a number of Linux shell scripts:
59
-
60
-
*`compile.sh`: compiles the modules one by one
61
-
*`multi-compile.sh`: compiles all modules at once
62
-
*`dry-run.sh`: launches the application with `--dry-run`, which aborts before calling the main method
63
-
*`run.sh`: launches the application
64
+
The root directory contains a number of Windows batch and Linux shell scripts:
64
65
65
-
Adapting them for Windows should be straight forwards except for where `$(find ...)` is used, which you might have to replace with a list of the actual files.
66
+
*`compile`: compiles the modules one by one
67
+
*`multi-compile`: compiles all modules at once
68
+
*`dry-run`: launches the application with `--dry-run`, which aborts before calling the main method
0 commit comments