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

Modified project structure to work with buildr

parent f8966ffc
No related branches found
No related tags found
No related merge requests found
Showing
with 27 additions and 3 deletions
...@@ -8,3 +8,5 @@ third_party/libmesos.dylib ...@@ -8,3 +8,5 @@ third_party/libmesos.dylib
conf/java-opts conf/java-opts
conf/spark-env.sh conf/spark-env.sh
conf/log4j.properties conf/log4j.properties
target
reports
...@@ -8,4 +8,4 @@ if [ -d $RESULTS_DIR ]; then ...@@ -8,4 +8,4 @@ if [ -d $RESULTS_DIR ]; then
rm -r $RESULTS_DIR rm -r $RESULTS_DIR
fi fi
mkdir -p $RESULTS_DIR mkdir -p $RESULTS_DIR
$FWDIR/run org.scalatest.tools.Runner -p $FWDIR/build/classes -u $RESULTS_DIR -o $@ $FWDIR/run org.scalatest.tools.Runner -p $FWDIR/target/test/classes -u $RESULTS_DIR -o $@
require 'buildr/scala'
# Version number for this release
VERSION_NUMBER = "0.0.0"
# Group identifier for your projects
GROUP = "spark"
COPYRIGHT = ""
# Specify Maven 2.0 remote repositories here, like this:
repositories.remote << "http://www.ibiblio.org/maven2/"
THIRD_PARTY_JARS = Dir["third_party/**/*.jar"]
desc "The Spark project"
define "spark" do
project.version = VERSION_NUMBER
project.group = GROUP
manifest["Implementation-Vendor"] = COPYRIGHT
compile.with THIRD_PARTY_JARS
package(:jar)
test.using :scalatest, :fork => true
end
...@@ -33,8 +33,8 @@ if [ -e $FWDIR/conf/java-opts ] ; then ...@@ -33,8 +33,8 @@ if [ -e $FWDIR/conf/java-opts ] ; then
fi fi
export JAVA_OPTS export JAVA_OPTS
# Build up classpath # build up classpath
CLASSPATH="$SPARK_CLASSPATH:$FWDIR/build/classes:$MESOS_CLASSPATH" CLASSPATH="$SPARK_CLASSPATH:$FWDIR/target/classes:$FWDIR/target/test/classes:$MESOS_CLASSPATH"
CLASSPATH+=:$FWDIR/conf CLASSPATH+=:$FWDIR/conf
CLASSPATH+=:$FWDIR/third_party/mesos.jar CLASSPATH+=:$FWDIR/third_party/mesos.jar
CLASSPATH+=:$FWDIR/third_party/asm-3.2/lib/all/asm-all-3.2.jar CLASSPATH+=:$FWDIR/third_party/asm-3.2/lib/all/asm-all-3.2.jar
......
File moved
File moved
File moved
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