diff options
-rw-r--r-- | core/pom.xml | 3 | ||||
-rw-r--r-- | project/SparkBuild.scala | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/core/pom.xml b/core/pom.xml index 90c8f97f2b..b1f0b03b4a 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -357,7 +357,8 @@ <configuration> <!-- Execute the shell script to generate the spark build information. --> <target> - <exec executable="${project.basedir}/../build/spark-build-info"> + <exec executable="bash"> + <arg value="${project.basedir}/../build/spark-build-info"/> <arg value="${project.build.directory}/extra-resources"/> <arg value="${project.version}"/> </exec> diff --git a/project/SparkBuild.scala b/project/SparkBuild.scala index 2f7da31e55..bce7f1d69b 100644 --- a/project/SparkBuild.scala +++ b/project/SparkBuild.scala @@ -458,7 +458,7 @@ object Core { resourceGenerators in Compile += Def.task { val buildScript = baseDirectory.value + "/../build/spark-build-info" val targetDir = baseDirectory.value + "/target/extra-resources/" - val command = buildScript + " " + targetDir + " " + version.value + val command = Seq("bash", buildScript, targetDir, version.value) Process(command).!! val propsFile = baseDirectory.value / "target" / "extra-resources" / "spark-version-info.properties" Seq(propsFile) |