From 4f3703b2906daf021eb3ff54d45a9bac151c4f3d Mon Sep 17 00:00:00 2001 From: David Walluck Date: Wed, 2 Apr 2025 11:10:28 -0400 Subject: [PATCH 1/3] fix: use separator properties when running JMH This makes the build cross-platform and fixes execution on, e.g., Windows. --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 563dae7..fa33af2 100644 --- a/pom.xml +++ b/pom.xml @@ -671,8 +671,8 @@ exec - ${java.home}/bin/java - -cp target/classes:target/test-classes:${test.classpath} org.openjdk.jmh.Main ${jmh.args} + ${java.home}${file.separator}bin${file.separator}java + -cp target${file.separator}classes${path.separator}target${file.separator}test-classes${path.separator}${test.classpath} org.openjdk.jmh.Main ${jmh.args} From 40a781c9165a5340644e2bfee5eeebc860aacb58 Mon Sep 17 00:00:00 2001 From: David Walluck Date: Thu, 3 Apr 2025 08:15:53 -0400 Subject: [PATCH 2/3] Quote the classpath argument --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index fa33af2..a0994bd 100644 --- a/pom.xml +++ b/pom.xml @@ -672,7 +672,7 @@ ${java.home}${file.separator}bin${file.separator}java - -cp target${file.separator}classes${path.separator}target${file.separator}test-classes${path.separator}${test.classpath} org.openjdk.jmh.Main ${jmh.args} + -cp "target${file.separator}classes${path.separator}target${file.separator}test-classes${path.separator}${test.classpath}" org.openjdk.jmh.Main ${jmh.args} From 2871dd1ca0ff6e1e41cbb8fe3ee0591636730402 Mon Sep 17 00:00:00 2001 From: David Walluck Date: Fri, 4 Apr 2025 11:49:18 -0400 Subject: [PATCH 3/3] Use CLASSPATH environment variable --- pom.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index a0994bd..d84045c 100644 --- a/pom.xml +++ b/pom.xml @@ -671,8 +671,11 @@ exec + + target${file.separator}classes${path.separator}target${file.separator}test-classes${path.separator}${test.classpath} + ${java.home}${file.separator}bin${file.separator}java - -cp "target${file.separator}classes${path.separator}target${file.separator}test-classes${path.separator}${test.classpath}" org.openjdk.jmh.Main ${jmh.args} + org.openjdk.jmh.Main ${jmh.args}