aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaiXinXiaoLei <huleilei1@huawei.com>2014-11-28 12:34:07 -0500
committerPatrick Wendell <pwendell@gmail.com>2014-11-28 12:34:07 -0500
commit052e65815f23ee92a2093a8059d7fd192b1526e5 (patch)
tree99ec73cae2b8fb6dbf2de9c1401237e20327da46
parent5b99bf243e2956fe933ab2dccd069266e82cad8d (diff)
downloadspark-052e65815f23ee92a2093a8059d7fd192b1526e5.tar.gz
spark-052e65815f23ee92a2093a8059d7fd192b1526e5.tar.bz2
spark-052e65815f23ee92a2093a8059d7fd192b1526e5.zip
Delete unnecessary function
when building spark by sbt, the function “runAlternateBoot" in sbt/sbt-launch-lib.bash is not used. And this function is not used by spark code. So I think this function is not necessary. And the option of "sbt.boot.properties" can be configured in the command line when building spark, eg: sbt/sbt assembly -Dsbt.boot.properties=$bootpropsfile. The file from https://github.com/sbt/sbt-launcher-package is changed. And the function “runAlternateBoot" is deleted in upstream project. I think spark project should delete this function in file sbt/sbt-launch-lib.bash. Thanks. Author: KaiXinXiaoLei <huleilei1@huawei.com> Closes #3224 from KaiXinXiaoLei/deleteFunction and squashes the following commits: e8eac49 [KaiXinXiaoLei] Delete blank lines. efe36d4 [KaiXinXiaoLei] Delete unnecessary function
-rwxr-xr-xsbt/sbt-launch-lib.bash7
1 files changed, 0 insertions, 7 deletions
diff --git a/sbt/sbt-launch-lib.bash b/sbt/sbt-launch-lib.bash
index 055e206662..84a6f7a207 100755
--- a/sbt/sbt-launch-lib.bash
+++ b/sbt/sbt-launch-lib.bash
@@ -186,10 +186,3 @@ run() {
"${sbt_commands[@]}" \
"${residual_args[@]}"
}
-
-runAlternateBoot() {
- local bootpropsfile="$1"
- shift
- addJava "-Dsbt.boot.properties=$bootpropsfile"
- run $@
-}