Skip to content

Commit e53a0ab

Browse files
committed
Add JDK logging to build scripts and workflows
1 parent 1aafdf6 commit e53a0ab

File tree

6 files changed

+30
-1
lines changed

6 files changed

+30
-1
lines changed

.github/workflows/scripts-android.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,8 @@ jobs:
2323
- name: Build Android port
2424
run: |
2525
source tools/env.sh
26+
echo "JAVA_HOME=$JAVA_HOME"
27+
java -version
28+
echo "JAVA_HOME_17=$JAVA_HOME_17"
29+
"$JAVA_HOME_17/bin/java" -version
2630
./scripts/build-android-port.sh -q -DskipTests

.github/workflows/scripts-ios.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ jobs:
2323
- name: Build iOS port
2424
run: |
2525
source tools/env.sh
26+
echo "JAVA_HOME=$JAVA_HOME"
27+
java -version
2628
./scripts/build-ios-port.sh -q -DskipTests

BUILDING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Building Codename One
22

3-
This document provides reproducible instructions for building Codename One and its Android and iOS ports with Maven. It is written so that both developers and automated tools can follow it step by step.
3+
This document provides reproducible instructions for building Codename One and its Android and iOS ports with Maven.
44

55
## Prerequisites
66

scripts/build-android-port.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ fi
3333

3434
export PATH="$JAVA_HOME/bin:$MAVEN_HOME/bin:$PATH"
3535

36+
echo "JAVA_HOME is set to $JAVA_HOME"
37+
"$JAVA_HOME/bin/java" -version
38+
echo "JAVA_HOME_17 is set to $JAVA_HOME_17"
39+
"$JAVA_HOME_17/bin/java" -version
40+
echo "PATH is $PATH"
41+
mvn -version
42+
3643
BUILD_CLIENT="$HOME/.codenameone/CodeNameOneBuildClient.jar"
3744
if [ ! -f "$BUILD_CLIENT" ]; then
3845
if ! mvn -f maven/pom.xml cn1:install-codenameone "$@"; then

scripts/build-ios-port.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ fi
3232

3333
export PATH="$JAVA_HOME/bin:$MAVEN_HOME/bin:$PATH"
3434

35+
echo "JAVA_HOME is set to $JAVA_HOME"
36+
if [ -x "$JAVA_HOME/bin/java" ]; then
37+
"$JAVA_HOME/bin/java" -version
38+
else
39+
echo "java executable not found under $JAVA_HOME" >&2
40+
fi
41+
echo "PATH is $PATH"
42+
mvn -version
43+
3544
BUILD_CLIENT="$HOME/.codenameone/CodeNameOneBuildClient.jar"
3645
if [ ! -f "$BUILD_CLIENT" ]; then
3746
if ! mvn -f maven/pom.xml cn1:install-codenameone "$@"; then

scripts/setup-workspace.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ EOF
7171

7272
source "$TOOLS_DIR/env.sh"
7373

74+
echo "JAVA_HOME is set to $JAVA_HOME"
75+
"$JAVA_HOME/bin/java" -version
76+
echo "JAVA_HOME_17 is set to $JAVA_HOME_17"
77+
"$JAVA_HOME_17/bin/java" -version
78+
echo "MAVEN_HOME is $MAVEN_HOME"
79+
mvn -version
80+
7481
mvn -f maven/pom.xml install "$@"
7582

7683
BUILD_CLIENT="$HOME/.codenameone/CodeNameOneBuildClient.jar"

0 commit comments

Comments
 (0)