-
Notifications
You must be signed in to change notification settings - Fork 107
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·14 lines (10 loc) · 873 Bytes
/
run.sh
File metadata and controls
executable file
·14 lines (10 loc) · 873 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
rm -rf out-app/ out-container/
# Compile container and platform API first
javac -Xlint:deprecation -Xlint:unchecked --module-source-path src-container -d out-container -m platform.api,platform.container
# Compile app a with platform API in separate output directory
javac -Xlint:deprecation --module-path out-container/platform.api --module-source-path src-appa -d out-appa -m app.a
# Compile app b with platform API in separate output directory
javac -Xlint:deprecation --module-path out-container/platform.api --module-source-path src-appb -d out-appb -m app.b
# Run the container app, without putting the compiled modules of the app on the module path.
# These are loaded by the container as applications!
java --module-path out-container --add-modules ALL-SYSTEM -m platform.container/platform.container.Launcher out-appa/app.a/app.a.AppA out-appb/app.b/app.b.AppB