Skip to content

Commit 5cc7f0c

Browse files
committed
Revert "Using the download cn1-binaries target instead"
This reverts commit 0933a0c.
1 parent 779a197 commit 5cc7f0c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/setup-workspace.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +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="../cn1-binaries"
2223

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

151152
PATH="$JAVA_HOME/bin:$MAVEN_HOME/bin:$PATH"
152153

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

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

0 commit comments

Comments
 (0)