Skip to content

Commit 0933a0c

Browse files
committed
Using the download cn1-binaries target instead
1 parent b6e3dfa commit 0933a0c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

scripts/setup-workspace.sh

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

2423
# Reuse previously saved environment if present (so we can skip downloads)
2524
if [ -f "$ENV_DIR/env.sh" ]; then
@@ -151,9 +150,8 @@ log "Maven version:"; "$MAVEN_HOME/bin/mvn" -version
151150

152151
PATH="$JAVA_HOME/bin:$MAVEN_HOME/bin:$PATH"
153152

154-
log "Cloning cn1-binaries"
155-
rm -Rf "$CN1_BINARIES"
156-
git clone https://github.com/codenameone/cn1-binaries "$CN1_BINARIES"
153+
log "Downloading cn1-binaries"
154+
"$MAVEN_HOME/bin/mvn" -f maven/pom.xml -DskipTests -Djava.awt.headless=true download-cn1-binaries
157155

158156
log "Building Codename One core modules"
159157
"$MAVEN_HOME/bin/mvn" -f maven/pom.xml -DskipTests -Djava.awt.headless=true install "$@"

0 commit comments

Comments
 (0)