Skip to content

Commit 80118dd

Browse files
committed
Gradle for egg10
1 parent 5424b69 commit 80118dd

File tree

12 files changed

+45
-29
lines changed

12 files changed

+45
-29
lines changed

egg__10_sc_nested_scopes_thread_dump/README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,18 @@ Build Notes:
1919
------------
2020

2121
* tested with [this jdk](../JDK.version.md)
22+
* tested with [this version](../Gradle.version.md) of Gradle
2223
* tested with [this version](../Maven.version.md) of Maven
23-
* Gradle does not yet support JDK 19 preview (as of NOV 2022). Check [here](https://docs.gradle.org/current/userguide/compatibility.html)
24+
25+
To Build (using Gradle):
26+
---------------------
27+
28+
* `./gradle-build.sh`
2429

2530
To Build (using Maven):
2631
---------------------
2732

28-
* `./mvn-clean.sh`
29-
* `./mvn-compile.sh`
33+
* `./mvn-build.sh`
3034

3135
To Build (using Bash):
3236
----------------------
@@ -40,7 +44,10 @@ useful commands:
4044

4145
To Run:
4246
---------
43-
* in terminal 1: `mvn-run.sh` (Maven) or `./run.sh` (Bash)
47+
* in terminal 1:
48+
- Gradle: `gradle-run.sh`
49+
- Maven: `mvn-run.sh`
50+
- Bash: `./run.sh`
4451
- this runs `Runner.java`
4552
* in terminal 2: `./list-thread-info.sh`
4653
- this calls `jcmd` and parses the output with `DumpParser.groovy`
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
mainClassName = "net.codetojoy.Runner"
3+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
../gradlew compileJava
6+
7+
echo "run complete"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
../gradlew run
6+
7+
echo "run complete"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
mvn install
6+
mvn clean
7+
mvn compile
8+
9+
echo "run complete"

egg__10_sc_nested_scopes_thread_dump/mvn-clean.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

egg__10_sc_nested_scopes_thread_dump/mvn-compile.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

egg__10_sc_nested_scopes_thread_dump/mvn-go.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

egg__10_sc_nested_scopes_thread_dump/mvn-run.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
set -e
44

5+
mvn install
6+
mvn clean
7+
mvn compile
58
mvn exec:exec
69

710
echo "run complete"

gradle-build-all.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ set -e
2121
./gradlew egg_9_sc_fan_in_client:compileJava
2222
./gradlew egg_9_sc_fan_in_server:compileJava
2323

24-
# cd $MY_HOME/egg__10_sc_nested_scopes_thread_dump
24+
./gradlew egg__10_sc_nested_scopes_thread_dump:compileJava
25+
2526
# cd $MY_HOME/egg__10b_sc_nested_experiment
2627
# cd $MY_HOME/egg__11_sc_utility
2728
# cd $MY_HOME/egg__11b_sc_utility

0 commit comments

Comments
 (0)