Skip to content

Commit 21daef8

Browse files
committed
feat: batch run examples
1 parent bba9306 commit 21daef8

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

jot-examples/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@ Edit this file to set:
2626

2727
## ▶️ How to Run
2828

29-
From the `jot-examples` module:
30-
3129
```bash
3230
# Build everything
33-
mvn -q -DskipTests package
31+
mvn -q -DskipTests clean install
32+
33+
# Change to jot-examples module directory
34+
cd jot-examples
3435

3536
# Run a specific example (Replace class with one below)
3637
mvn exec:java -Dexec.mainClass="com.method5.jot.examples.query.QueryAccountAndBalanceExample"

jot-examples/pom.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
</license>
2424
</licenses>
2525

26+
<properties>
27+
<exec.mainClass>com.method5.jot.examples.keys.GenericWalletExample</exec.mainClass>
28+
</properties>
29+
2630
<build>
2731
<plugins>
2832
<plugin>
@@ -38,7 +42,7 @@
3842
<artifactId>exec-maven-plugin</artifactId>
3943
<version>3.6.0</version>
4044
<configuration>
41-
<mainClass>com.method5.jot.examples.keys.GenericWalletExample</mainClass>
45+
<mainClass>${exec.mainClass}</mainClass>
4246
<cleanupDaemonThreads>false</cleanupDaemonThreads>
4347
</configuration>
4448
</plugin>

0 commit comments

Comments
 (0)