forked from nipafx/demo-java-x
-
Notifications
You must be signed in to change notification settings - Fork 0
/
platform-logging.sh
executable file
·33 lines (29 loc) · 1.1 KB
/
platform-logging.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
set -e
source executables.sh
echo " > creating clean directories"
rm -rf target/logging/classes
mkdir -p target/logging/classes
rm -rf target/logging/mods
mkdir -p target/logging/mods
echo " > compiling and packaging logger"
mkdir target/logging/classes/org.codefx.demo.java9.logging
$javac \
-d target/logging/classes/org.codefx.demo.java9.logging \
src/platform_logging/java/org/codefx/demo/java9/api/platform_logging/logger/*.java
$jar \
-c \
--file target/logging/mods/org.codefx.demo.java9.logging.jar \
-C target/logging/classes/org.codefx.demo.java9.logging/ .
echo " > compiling and packaging app"
mkdir target/logging/classes/org.codefx.demo.java9.app
$javac \
-d target/logging/classes/org.codefx.demo.java9.app\
src/platform_logging/java/org/codefx/demo/java9/api/platform_logging/app/*.java
$jar \
-c \
--file target/logging/mods/org.codefx.demo.java9.app.jar \
--main-class org.codefx.demo.java9.api.platform_logging.app.LoggingApplication \
-C target/logging/classes/org.codefx.demo.java9.app/ .
echo " > running App"
$java -verbose:gc -p target/logging/mods -m org.codefx.demo.javaX.app