forked from nipafx/demo-jpms-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompile.bat
55 lines (47 loc) · 2.02 KB
/
compile.bat
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
@echo off
echo "--- COMPILATION & PACKAGING ---"
echo " > creating clean directories"
del /s /q classes
rmdir /s /q classes
mkdir classes
del /s /q mods
rmdir /s /q mods
mkdir mods
echo " > creating monitor.observer"
dir /S /B monitor.observer\src\*.java > sources.txt
javac -d classes/monitor.observer @sources.txt
del sources.txt
jar --create --file mods/monitor.observer.jar -C classes/monitor.observer .
echo " > creating monitor.observer.alpha"
dir /S /B monitor.observer.alpha\src\*.java > sources.txt
javac --module-path mods -d classes/monitor.observer.alpha @sources.txt
del sources.txt
jar --create --file mods/monitor.observer.alpha.jar -C classes/monitor.observer.alpha .
echo " > creating monitor.observer.beta"
dir /S /B monitor.observer.beta\src\*.java > sources.txt
javac --module-path mods -d classes/monitor.observer.beta @sources.txt
del sources.txt
jar --create --file mods/monitor.observer.beta.jar -C classes/monitor.observer.beta .
echo " > creating monitor.statistics"
dir /S /B monitor.statistics\src\*.java > sources.txt
javac --module-path mods -d classes/monitor.statistics @sources.txt
del sources.txt
jar --create --file mods/monitor.statistics.jar -C classes/monitor.statistics .
echo " > creating monitor.persistence"
dir /S /B monitor.persistence\src\*.java > sources.txt
javac --module-path mods -d classes/monitor.persistence @sources.txt
del sources.txt
jar --create --file mods/monitor.persistence.jar -C classes/monitor.persistence .
echo " > creating monitor.rest"
rem spark is required as an automatic module, so copy it to mods
copy /y libs\spark-core-* mods\
ren mods\spark-core-*.jar spark.core.jar
dir /S /B monitor.rest\src\*.java > sources.txt
javac --module-path mods -d classes/monitor.rest @sources.txt
del sources.txt
jar --create --file mods/monitor.rest.jar -C classes/monitor.rest .
echo " > creating monitor"
dir /S /B monitor\src\*.java > sources.txt
javac --module-path mods -d classes/monitor @sources.txt
del sources.txt
jar --create --file mods/monitor.jar --main-class monitor.Main -C classes/monitor .