aboutsummaryrefslogtreecommitdiffstats
path: root/bcel-builder/testdata/modules/cpl.sh
blob: e2988772f248d36d79d8e820ab26011cee845d0b (plain)
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
echo "Build simple empty module definition"
cd one
javac module-info.java

# A pre java9 jar e.g. a-b-c-1.6.10.jar would become a module a.b.c (automated module)
echo "Build empty module definition with automated name a.b.c"
cd ..
cd two/a
javac module-info.java

echo "Build helper module: b.c.d"
cd ../..
cd two/b
javac module-info.java

echo "Build helper module: c.d.e"
cd ../..
cd two/c
javac module-info.java

echo "Build code using require variants"
cd ../..
cd two/d
javac module-info.java --module-path ../a:../b:../c

echo "Exports variants"
cd ../..
cd two/e
javac module-info.java C1.java C2.java C3.java -d . --module-path ../a:../b

echo "Uses variants"
cd ../..
cd two/f
javac module-info.java I1.java -d . 

echo "Provides variants"
cd ../..
cd two/g
javac module-info.java I1.java I2.java C1.java C2.java -d . 

echo "Opens variants"
cd ../..
cd two/h
javac module-info.java C1.java C2.java C3.java --module-path ../a:../b -d . 
cd ../..