Skip to content
Snippets Groups Projects
Commit 108cfaa5 authored by Matei Zaharia's avatar Matei Zaharia
Browse files

Fix Windows script for finding examples JAR

parent 5d7b591c
No related branches found
No related tags found
No related merge requests found
......@@ -64,12 +64,12 @@ set CLASSPATH=%CLASSPATH%;%BAGEL_DIR%\target\scala-%SCALA_VERSION%\classes
rem Figure out the JAR file that our examples were packaged into.
rem First search in the build path from SBT:
for /D %%d in ("%EXAMPLES_DIR%/target/scala-%SCALA_VERSION%/spark-examples*.jar") do (
set SPARK_EXAMPLES_JAR=%%d
for %%d in ("examples/target/scala-%SCALA_VERSION%/spark-examples*.jar") do (
set SPARK_EXAMPLES_JAR=examples/target/scala-%SCALA_VERSION%/%%d
)
rem Then search in the build path from Maven:
for /D %%d in ("%EXAMPLES_DIR%/target/spark-examples*hadoop*.jar") do (
set SPARK_EXAMPLES_JAR=%%d
for %%d in ("examples/target/spark-examples*hadoop*.jar") do (
set SPARK_EXAMPLES_JAR=examples/target/%%d
)
rem Figure out whether to run our class with java or with the scala launcher.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment