This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/karaf-minho.git
The following commit(s) were added to refs/heads/main by this push:
new 54d24fc Make Maven test-package itest more robust
54d24fc is described below
commit 54d24fc4ac93fdb9beb5af060211cbb7a4067a09
Author: Jean-Baptiste Onofré <[email protected]>
AuthorDate: Wed Jan 4 10:22:06 2023 +0100
Make Maven test-package itest more robust
---
tooling/maven/src/it/test-package/verify.bsh | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/tooling/maven/src/it/test-package/verify.bsh
b/tooling/maven/src/it/test-package/verify.bsh
index 534be4a..bf73b8b 100644
--- a/tooling/maven/src/it/test-package/verify.bsh
+++ b/tooling/maven/src/it/test-package/verify.bsh
@@ -22,5 +22,11 @@ import java.lang.*;
import java.util.*;
File generated = new File(basedir, "target/runtime/test");
-File boot = new File(generated, "minho-boot-0.1-SNAPSHOT.jar");
-return generated.exists() && boot.exists();
+boolean found = false;
+for (String name:generated.list()) {
+ if (name.startsWith("minho-boot-")) {
+ found = true;
+ break;
+ }
+}
+return generated.exists() && found;