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 2022/08/30 12:11:29 UTC

[plc4x] branch develop updated: chore: output java os properties to better debug broken profile detection

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 eed4c9c2d chore: output java os properties to better debug broken profile detection
eed4c9c2d is described below

commit eed4c9c2d37807e449ec92b6e590e360555eac32
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Tue Aug 30 14:11:22 2022 +0200

    chore: output java os properties to better debug broken profile detection
---
 src/main/script/prerequisiteCheck.groovy | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/main/script/prerequisiteCheck.groovy b/src/main/script/prerequisiteCheck.groovy
index 5750e943c..69f2545f4 100644
--- a/src/main/script/prerequisiteCheck.groovy
+++ b/src/main/script/prerequisiteCheck.groovy
@@ -312,16 +312,18 @@ private Matcher extractVersion(input) {
 /////////////////////////////////////////////////////
 // Find out which OS and arch are bring used.
 /////////////////////////////////////////////////////
-
+println "Os name:    ${System.getProperty("os.name")}"
+println "Os arch:    ${System.getProperty("os.arch")}"
+println "Os version: ${System.getProperty("os.version")}"
 def osString = project.properties['os.classifier']
 def osMatcher = osString =~ /(.*)-(.*)/
 if (osMatcher.size() == 0) {
-    throw new RuntimeException("Currently unsupported OS. Actual os string: " + osString)
+    throw new RuntimeException("Currently unsupported OS. Actual os string: $osString")
 }
 def os = osMatcher[0][1]
 def arch = osMatcher[0][2]
-println "Detected OS:   " + os
-println "Detected Arch: " + arch
+println "Detected OS:   $os"
+println "Detected Arch: $arch"
 
 /////////////////////////////////////////////////////
 // Find out which profiles are enabled.