diff --git a/Justfile b/Justfile index 91f29cc45..ca3fe7750 100644 --- a/Justfile +++ b/Justfile @@ -69,20 +69,21 @@ protoBenchRunNativeImage node="node" client="client" args="bench-1-1": runProtoBench node="node" client="client" args="bench-1-1": #!/usr/bin/env fish - set -l jarspath (sbt --error "print proBench/packageJars") + sbt --client 'set proBench/JarExport.packageJarsPath := "target/probench/jars"; proBench/packageJars' - kitty java --class-path "$jarspath/*" probench.cli {{node}} --name NODE1 --listen-client-port 8010 --listen-peer-port 8011 --cluster --initial-cluster-ids NODE1 NODE2 NODE3 & + kitty java --class-path "target/probench/jars/*" probench.cli {{node}} --name NODE1 --listen-client-port 8010 --listen-peer-port 8011 --cluster --initial-cluster-ids NODE1 NODE2 NODE3 & sleep 1; - kitty java --class-path "$jarspath/*" probench.cli {{node}} --name NODE2 --listen-client-port 8020 --listen-peer-port 8021 --cluster localhost:8011 --initial-cluster-ids NODE1 NODE2 NODE3 & + kitty java --class-path "target/probench/jars/*" probench.cli {{node}} --name NODE2 --listen-client-port 8020 --listen-peer-port 8021 --cluster localhost:8011 --initial-cluster-ids NODE1 NODE2 NODE3 & sleep 1; - kitty java --class-path "$jarspath/*" probench.cli {{node}} --name NODE3 --listen-client-port 8030 --listen-peer-port 8031 --cluster localhost:8011 localhost:8021 --initial-cluster-ids NODE1 NODE2 NODE3 & + kitty java --class-path "target/probench/jars/*" probench.cli {{node}} --name NODE3 --listen-client-port 8030 --listen-peer-port 8031 --cluster localhost:8011 localhost:8021 --initial-cluster-ids NODE1 NODE2 NODE3 & sleep 1; - cat "Modules/Examples/Protocol Benchmarks/args/bench-1-1" | java --class-path "$jarspath/*" probench.cli {{client}} --node localhost:8010 --name Client1 - # java --class-path "$jarspath/*" probench.cli client --node localhost:8010 --name Client2 - # java --class-path "$jarspath/*" probench.cli client --node localhost:8010 --name Client3 + cat "Modules/Examples/Protocol Benchmarks/args/bench-1-1" | java --class-path "target/probench/jars/*" probench.cli {{client}} --node localhost:8010 --name Client1 + # java --class-path "target/probench/jars/*" probench.cli client --node localhost:8010 --name Client2 + # java --class-path "target/probench/jars/*" probench.cli client --node localhost:8010 --name Client3 trap 'kill $(jobs -p)' EXIT + rm -r "target/probench/" runProtoBenchCluster node="node": #!/usr/bin/env fish