-
Notifications
You must be signed in to change notification settings - Fork 1
/
run.sh
executable file
·28 lines (22 loc) · 990 Bytes
/
run.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
echo creating mods and classes directories...
rm -rf mods
rm -rf classes
mkdir mods
echo compiling 'helloworld' classes
javac -d classes/helloworld $(find helloworld -name '*.java')
echo creating 'helloworld' jar
jar --create --file mods/helloworld.jar -C classes/helloworld .
echo compiling 'helloworld.alpha classes'
javac -d classes/helloworld.alpha $(find helloworld.alpha -name '*.java') --module-path mods
echo creating 'helloworld.alpha' jar
jar --create --file mods/helloworld.alpha.jar -C classes/helloworld.alpha .
echo compiling 'helloworld.beta' classes
javac -d classes/helloworld.beta $(find helloworld.beta -name '*.java') --module-path mods
echo creating 'helloworld.beta jar'
jar --create --file mods/helloworld.beta.jar -C classes/helloworld.beta .
echo compiling 'app' classes
javac -d classes/app $(find app -name '*.java') --module-path mods
echo creating 'app' jar
jar --create --file mods/app.jar --main-class com.yopeso.app.Main -C classes/app .
echo
echo DONE