Skip to content

Commit 75d927a

Browse files
committed
Fixed absolute path and BuildClient jar
1 parent 15d7e6b commit 75d927a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/setup-workspace.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
###
33
# Prepare Codename One workspace by installing Maven, provisioning JDK 8, 11 and 17,
44
# building core modules, and installing Maven archetypes.
5+
# IMPORTANT: Run this script from the project root!
56
###
67
set -euo pipefail
78
[ "${DEBUG:-0}" = "1" ] && set -x
@@ -19,7 +20,12 @@ DOWNLOAD_DIR="$TMPDIR/codenameone-tools"
1920
mkdir -p "$DOWNLOAD_DIR"
2021
ENV_DIR="$DOWNLOAD_DIR/tools"
2122
mkdir -p "$ENV_DIR"
22-
CN1_BINARIES="../cn1-binaries"
23+
mkdir -p ../cn1-binaries
24+
CN1_BINARIES="$(cd ./cn1-binaries && pwd -P)"
25+
rm -Rf ../cn1-binaries
26+
27+
mkdir -p ~/.codenameone
28+
cp maven/CodeNameOneBuildClient.jar ~/.codenameone
2329

2430
# Reuse previously saved environment if present (so we can skip downloads)
2531
if [ -f "$ENV_DIR/env.sh" ]; then

0 commit comments

Comments
 (0)