Skip to content

Commit 09c6d46

Browse files
committed
Gradle for egg10b
1 parent 80118dd commit 09c6d46

File tree

10 files changed

+41
-26
lines changed

10 files changed

+41
-26
lines changed

egg__10b_sc_nested_experiment/README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,15 @@ Summary:
1414
- Bash scripts are used to create a thread dump (in JSON), using `pid.txt`
1515
- a Groovy program parses the JSON and prints out salient thread ids
1616

17+
To Build (using Gradle):
18+
---------------------
19+
20+
* `./gradle-build.sh`
21+
1722
To Build (using Maven):
1823
---------------------
1924

20-
* `./mvn-clean.sh`
21-
* `./mvn-compile.sh`
25+
* `./mvn-build.sh`
2226

2327
To Build (using Bash):
2428
----------------------
@@ -32,7 +36,10 @@ useful commands:
3236

3337
To Run:
3438
---------
35-
* in terminal 1: `mvn-run.sh` (Maven) or `./run.sh` (Bash)
39+
* in terminal 1:
40+
- Gradle: `gradle-run.sh`
41+
- Maven: `mvn-run.sh`
42+
- Bash: `./run.sh`
3643
- this runs `Runner.java`
3744
* in terminal 2: `./list-thread-info.sh`
3845
- 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__10b_sc_nested_experiment/mvn-clean.sh

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

egg__10b_sc_nested_experiment/mvn-compile.sh

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

egg__10b_sc_nested_experiment/mvn-go.sh

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

egg__10b_sc_nested_experiment/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"

settings.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ include ([
99
'egg_8_sc_custom_invoke_some',
1010
'egg_9_sc_fan_in_client',
1111
'egg_9_sc_fan_in_server',
12-
'egg__10_sc_nested_scopes_thread_dump'
12+
'egg__10_sc_nested_scopes_thread_dump',
13+
'egg__10b_sc_nested_experiment'
1314
])
1415

1516
for (project in rootProject.children) {

0 commit comments

Comments
 (0)