Skip to content

Commit b6e3dfa

Browse files
committed
Moved the cn1-binaries directory to a new location
1 parent b5a3bd9 commit b6e3dfa

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

scripts/setup-workspace.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ DOWNLOAD_DIR="$TMPDIR/codenameone-tools"
1919
mkdir -p "$DOWNLOAD_DIR"
2020
ENV_DIR="$DOWNLOAD_DIR/tools"
2121
mkdir -p "$ENV_DIR"
22-
CN1_BINARIES="$ENV_DIR/cn1-binaries"
23-
mkdir -p "$CN1_BINARIES/javase"
22+
CN1_BINARIES="../cn1-binaries"
2423

2524
# Reuse previously saved environment if present (so we can skip downloads)
2625
if [ -f "$ENV_DIR/env.sh" ]; then
@@ -157,12 +156,12 @@ rm -Rf "$CN1_BINARIES"
157156
git clone https://github.com/codenameone/cn1-binaries "$CN1_BINARIES"
158157

159158
log "Building Codename One core modules"
160-
"$MAVEN_HOME/bin/mvn" -Dcn1.binaries="$CN1_BINARIES" -f maven/pom.xml -DskipTests -Djava.awt.headless=true install "$@"
159+
"$MAVEN_HOME/bin/mvn" -f maven/pom.xml -DskipTests -Djava.awt.headless=true install "$@"
161160

162161
BUILD_CLIENT="$HOME/.codenameone/CodeNameOneBuildClient.jar"
163162
log "Ensuring CodeNameOneBuildClient.jar is installed"
164163
if [ ! -f "$BUILD_CLIENT" ]; then
165-
if ! "$MAVEN_HOME/bin/mvn" -Dcn1.binaries="$CN1_BINARIES" -f maven/pom.xml cn1:install-codenameone "$@"; then
164+
if ! "$MAVEN_HOME/bin/mvn" -f maven/pom.xml cn1:install-codenameone "$@"; then
166165
log "Falling back to copying CodeNameOneBuildClient.jar"
167166
mkdir -p "$(dirname "$BUILD_CLIENT")"
168167
cp maven/CodeNameOneBuildClient.jar "$BUILD_CLIENT" || true
@@ -188,6 +187,6 @@ fi
188187
set -e
189188

190189
if [ "${skip_archetypes:-0}" -eq 0 ]; then
191-
(cd cn1-maven-archetypes && "$MAVEN_HOME/bin/mvn" -Dcn1.binaries="$CN1_BINARIES" -DskipTests -DskipITs=true -Dinvoker.skip=true install) || \
190+
(cd cn1-maven-archetypes && "$MAVEN_HOME/bin/mvn" -DskipTests -DskipITs=true -Dinvoker.skip=true install) || \
192191
log "Archetype mvn install failed; continuing."
193192
fi

0 commit comments

Comments
 (0)