You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2023/05/17 07:57:00 UTC
[plc4x] branch develop updated: build(plc4x): output command output in case of missing version [skip ci]
This is an automated email from the ASF dual-hosted git repository.
sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git
The following commit(s) were added to refs/heads/develop by this push:
new 62478b8801 build(plc4x): output command output in case of missing version [skip ci]
62478b8801 is described below
commit 62478b88010805d8d718f4f7c151207e20f7cb2e
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Wed May 17 09:56:40 2023 +0200
build(plc4x): output command output in case of missing version [skip ci]
---
src/main/script/prerequisiteCheck.groovy | 29 +++++++++++++++++++++++++++--
1 file changed, 27 insertions(+), 2 deletions(-)
diff --git a/src/main/script/prerequisiteCheck.groovy b/src/main/script/prerequisiteCheck.groovy
index c3c8319313..f8bb664896 100644
--- a/src/main/script/prerequisiteCheck.groovy
+++ b/src/main/script/prerequisiteCheck.groovy
@@ -92,6 +92,9 @@ def checkDotnet() {
}
} else {
println "missing"
+ println "--- output of version `dotnet --version` command ---"
+ println output
+ println "----------------------------------------------------"
allConditionsMet = false
}
}
@@ -153,6 +156,9 @@ def checkGcc() {
}
} else {
println "missing"
+ println "--- output of version `gcc --version` command ---"
+ println output
+ println "-------------------------------------------------"
allConditionsMet = false
}
}
@@ -174,6 +180,9 @@ def checkGit() {
}
} else {
println "missing"
+ println "--- output of version `git --version` command ---"
+ println output
+ println "-------------------------------------------------"
allConditionsMet = false
}
}
@@ -202,6 +211,9 @@ def checkPython() {
}
} catch (Exception ignored) {
println "missing"
+ println "--- output of version `${python} --version` command ---"
+ println output
+ println "----------------------------------------------------"
allConditionsMet = false
}
}
@@ -220,12 +232,19 @@ def checkPythonVenv() {
process.waitForProcessOutput(stdOut, stdErr)
if (stdErr.contains("No module named")) {
println "missing"
+ println "--- output of version `python -Im \"ensurepip\"` command ---"
+ println output
+ println "------------------------------------------------------------"
allConditionsMet = false
} else {
println " OK"
}
- } catch (Exception ignored) {
+ } catch (Exception e) {
println "missing"
+ println "--- failed with exception ---"
+ println e
+ e.printStackTrace()
+ println "----------------------------------------------------"
allConditionsMet = false
}
}
@@ -257,6 +276,9 @@ def checkDocker() {
}
} else {
println "missing"
+ println "--- output of version `docker info` command ---"
+ println output
+ println "-----------------------------------------------"
allConditionsMet = false
}
// TODO: Implement the actual check ...
@@ -288,9 +310,12 @@ def checkLibPcap(String minVersion, String os, String arch) {
println " SKIPPED (on aarch64)"
}
} catch (Error e) {
- e.printStackTrace()
output = ""
println "missing"
+ println "--- exception ---"
+ println e
+ e.printStackTrace()
+ println "-----------------"
allConditionsMet = false
}
}