From ff511bacf223e19244f5f6114d60af7dcadeda4d Mon Sep 17 00:00:00 2001 From: Reynold Xin Date: Wed, 30 Jul 2014 11:45:24 -0700 Subject: [SPARK-2746] Set SBT_MAVEN_PROFILES only when it is not set explicitly by the user. Author: Reynold Xin Closes #1655 from rxin/SBT_MAVEN_PROFILES and squashes the following commits: b268c4b [Reynold Xin] [SPARK-2746] Set SBT_MAVEN_PROFILES only when it is not set explicitly by the user. --- dev/run-tests | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'dev/run-tests') diff --git a/dev/run-tests b/dev/run-tests index 795d16a4d9..c95ef8a574 100755 --- a/dev/run-tests +++ b/dev/run-tests @@ -21,7 +21,10 @@ FWDIR="$(cd `dirname $0`/..; pwd)" cd $FWDIR -export SBT_MAVEN_PROFILES="-Pyarn -Phadoop-2.3 -Dhadoop.version=2.3.0" +if [ -z "$SBT_MAVEN_PROFILES" ]; then + export SBT_MAVEN_PROFILES="-Pyarn -Phadoop-2.3 -Dhadoop.version=2.3.0" +fi +echo "SBT_MAVEN_PROFILES=\"$SBT_MAVEN_PROFILES\"" # Remove work directory rm -rf ./work -- cgit v1.2.3