Skip to content

Commit e62b2f6

Browse files
committed
Fixed debug logging
1 parent 884d9cc commit e62b2f6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

scripts/build-android-port.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
# Build Codename One Android port using JDK 11 for Maven and JDK 17 for compilation
33
set -euo pipefail
44

5+
log() {
6+
echo "[build-android-port] $1"
7+
}
8+
59
# Normalize TMPDIR and compose paths without duplicate slashes
610
TMPDIR="${TMPDIR:-/tmp}"
711
TMPDIR="${TMPDIR%/}"
@@ -13,7 +17,7 @@ log "The DOWNLOAD_DIR is ${DOWNLOAD_DIR}"
1317

1418
ENV_DIR="$DOWNLOAD_DIR/tools"
1519

16-
cat "$ENV_DIR/env.sh"
20+
cat "$ENV_DIR/env.sh" | tee /dev/stderr
1721

1822
if [ -f "$ENV_DIR/env.sh" ]; then
1923
source "$ENV_DIR/env.sh"

scripts/setup-workspace.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export MAVEN_HOME="$MAVEN_HOME"
150150
export PATH="\$JAVA_HOME/bin:\$MAVEN_HOME/bin:\$PATH"
151151
ENV
152152

153-
cat "$ENV_DIR/env.sh"
153+
cat "$ENV_DIR/env.sh" | tee /dev/stderr
154154

155155
# shellcheck disable=SC1090
156156
source "$ENV_DIR/env.sh"

0 commit comments

Comments
 (0)