aboutsummaryrefslogtreecommitdiff
path: root/make-distribution.sh
diff options
context:
space:
mode:
authorRajendra Gokhale (rvgcentos) <rvg@cloudera.com>2015-05-01 17:01:36 -0700
committerPatrick Wendell <patrick@databricks.com>2015-05-01 17:01:36 -0700
commite6fb37712eb1762d8184edc897bf2d468db8d254 (patch)
tree5d0e4a227f1c17b2901aac136e3b161112377158 /make-distribution.sh
parent41c6a44b1a6ae5c70a8e8dc82d0062de9bdee5b3 (diff)
downloadspark-e6fb37712eb1762d8184edc897bf2d468db8d254.tar.gz
spark-e6fb37712eb1762d8184edc897bf2d468db8d254.tar.bz2
spark-e6fb37712eb1762d8184edc897bf2d468db8d254.zip
[SPARK-7304] [BUILD] Include $@ in call to mvn consistently in make-distribution.sh
Adding the $ allows the caller of this script to supply additional arguments to the mvn command and is consistent with how mvn is being invoked elsewhere in the scripts Author: Rajendra Gokhale (rvgcentos) <rvg@cloudera.com> Closes #5846 from palamau/master and squashes the following commits: e5f2adb [Rajendra Gokhale (rvgcentos)] Add $@ in call to mvn consistently in make-distribution.sh
Diffstat (limited to 'make-distribution.sh')
-rwxr-xr-xmake-distribution.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/make-distribution.sh b/make-distribution.sh
index cb65932b4a..92177e19fe 100755
--- a/make-distribution.sh
+++ b/make-distribution.sh
@@ -26,6 +26,7 @@
set -o pipefail
set -e
+set -x
# Figure out where the Spark framework is installed
SPARK_HOME="$(cd "`dirname "$0"`"; pwd)"
@@ -126,7 +127,7 @@ if [ ! $(command -v "$MVN") ] ; then
exit -1;
fi
-VERSION=$("$MVN" help:evaluate -Dexpression=project.version 2>/dev/null | grep -v "INFO" | tail -n 1)
+VERSION=$("$MVN" help:evaluate -Dexpression=project.version $@ 2>/dev/null | grep -v "INFO" | tail -n 1)
SCALA_VERSION=$("$MVN" help:evaluate -Dexpression=scala.binary.version $@ 2>/dev/null\
| grep -v "INFO"\
| tail -n 1)