Skip to content

Commit a0cc07e

Browse files
committed
update build script
1 parent ca5642b commit a0cc07e

File tree

4 files changed

+22
-33
lines changed

4 files changed

+22
-33
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
### easter_eggs_for_java_loom
33

4-
- examples re: [Project Loom](https://openjdk.org/projects/loom/) in JDK 19
4+
- examples re: [Project Loom](https://openjdk.org/projects/loom/) in JDK 21
55
- usage of *egg* here is intended as an [SSCCE](http://sscce.org/); **not** a [hidden feature](https://en.wikipedia.org/wiki/Easter_egg_(media))
66

77
### Notes

build-all.sh

Lines changed: 21 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,50 +4,41 @@ set -e
44

55
MY_HOME=$PWD
66

7-
cd $MY_HOME/egg_1_max_p_threads
8-
./clean.sh && ./compile.sh
7+
clean_compile() {
8+
echo "... $1"
9+
cd $MY_HOME/$1
10+
./clean.sh && ./compile.sh
11+
}
912

10-
cd $MY_HOME/egg_2_max_v_threads
11-
./clean.sh && ./compile.sh
13+
clean_compile "egg_1_max_p_threads"
1214

13-
cd $MY_HOME/egg_3_legacy_exec
14-
./clean.sh && ./compile.sh
15+
clean_compile "egg_2_max_v_threads"
1516

16-
cd $MY_HOME/egg_4_virtual_exec
17-
./clean.sh && ./compile.sh
17+
clean_compile "egg_3_legacy_exec"
1818

19-
cd $MY_HOME/egg_5_sc_invoke_all
20-
./clean.sh && ./compile.sh
19+
clean_compile "egg_4_virtual_exec"
2120

22-
cd $MY_HOME/egg_6_sc_invoke_any
23-
./clean.sh && ./compile.sh
21+
clean_compile "egg_5_sc_invoke_all"
2422

25-
cd $MY_HOME/egg_7_sc_deadline
26-
./clean.sh && ./compile.sh
23+
clean_compile "egg_6_sc_invoke_any"
2724

28-
cd $MY_HOME/egg_8_sc_custom_invoke_some
29-
./clean.sh && ./compile.sh
25+
clean_compile "egg_7_sc_deadline"
3026

31-
cd $MY_HOME/egg_9_sc_fan_in/client
32-
./clean.sh && ./compile.sh
27+
clean_compile "egg_8_sc_custom_invoke_some"
3328

34-
cd $MY_HOME/egg_9_sc_fan_in/server
35-
./clean.sh && ./compile.sh
29+
clean_compile "egg_9_sc_fan_in/client"
3630

37-
cd $MY_HOME/egg__10_sc_nested_scopes_thread_dump
38-
./clean.sh && ./compile.sh
31+
clean_compile "egg_9_sc_fan_in/server"
3932

40-
cd $MY_HOME/egg__10b_sc_nested_experiment
41-
./clean.sh && ./compile.sh
33+
clean_compile "egg__10_sc_nested_scopes_thread_dump"
4234

43-
cd $MY_HOME/egg__11_sc_utility
44-
./clean.sh && ./compile.sh
35+
clean_compile "egg__10b_sc_nested_experiment"
4536

46-
cd $MY_HOME/egg__11b_sc_utility
47-
./clean.sh && ./compile.sh
37+
clean_compile "egg__11_sc_utility"
4838

49-
cd $MY_HOME/egg_StackOverflow_74464598
50-
./clean.sh && ./compile.sh
39+
clean_compile "egg__11b_sc_utility"
40+
41+
clean_compile "egg_StackOverflow_74464598"
5142

5243
cd $MY_HOME
5344

egg_9_sc_fan_in/client/run.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ CLASSPATH=$CLASSPATH:$TARGET_DIR
99

1010
java --enable-preview \
1111
-cp $CLASSPATH \
12-
--add-modules jdk.incubator.concurrent \
1312
net.codetojoy.Runner
1413

1514
echo "run complete"

egg_9_sc_fan_in/server/run.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ CLASSPATH=$CLASSPATH:$TARGET_DIR
99

1010
java --enable-preview \
1111
-cp $CLASSPATH \
12-
--add-modules jdk.incubator.concurrent \
1312
net.codetojoy.Runner
1413

1514
echo "run complete"

0 commit comments

Comments
 (0)