Skip to content

Commit d702d53

Browse files
Marcelo Vanzinsarutak
Marcelo Vanzin
authored andcommitted
[SPARK-9583] [BUILD] Do not print mvn debug messages to stdout.
This allows build/mvn to be used by make-distribution.sh. Author: Marcelo Vanzin <[email protected]> Closes apache#7915 from vanzin/SPARK-9583 and squashes the following commits: 6469e60 [Marcelo Vanzin] [SPARK-9583] [build] Do not print mvn debug messages to stdout.
1 parent cb7fa0a commit d702d53

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build/mvn

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ install_app() {
5151
# check if we have curl installed
5252
# download application
5353
[ ! -f "${local_tarball}" ] && [ $(command -v curl) ] && \
54-
echo "exec: curl ${curl_opts} ${remote_tarball}" && \
54+
echo "exec: curl ${curl_opts} ${remote_tarball}" 1>&2 && \
5555
curl ${curl_opts} "${remote_tarball}" > "${local_tarball}"
5656
# if the file still doesn't exist, lets try `wget` and cross our fingers
5757
[ ! -f "${local_tarball}" ] && [ $(command -v wget) ] && \
58-
echo "exec: wget ${wget_opts} ${remote_tarball}" && \
58+
echo "exec: wget ${wget_opts} ${remote_tarball}" 1>&2 && \
5959
wget ${wget_opts} -O "${local_tarball}" "${remote_tarball}"
6060
# if both were unsuccessful, exit
6161
[ ! -f "${local_tarball}" ] && \
@@ -146,7 +146,7 @@ fi
146146
# Set any `mvn` options if not already present
147147
export MAVEN_OPTS=${MAVEN_OPTS:-"$_COMPILE_JVM_OPTS"}
148148

149-
echo "Using \`mvn\` from path: $MVN_BIN"
149+
echo "Using \`mvn\` from path: $MVN_BIN" 1>&2
150150

151151
# Last, call the `mvn` command as usual
152152
${MVN_BIN} "$@"

0 commit comments

Comments
 (0)