aboutsummaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
authorIsmael Juma <ismael@juma.me.uk>2011-05-26 22:36:43 +0100
committerIsmael Juma <ismael@juma.me.uk>2011-05-27 07:57:10 +0100
commit164ef4c75157c328a680f5e9ef9bcbd05f2b93df (patch)
treed19bdb6932a16fe29b302a31b1b5657c41fed55d /project
parentcfbe2da1a625b4d1132646580ce063ce4f7637c5 (diff)
downloadspark-164ef4c75157c328a680f5e9ef9bcbd05f2b93df.tar.gz
spark-164ef4c75157c328a680f5e9ef9bcbd05f2b93df.tar.bz2
spark-164ef4c75157c328a680f5e9ef9bcbd05f2b93df.zip
Use explicit asInstanceOf instead of misleading unchecked pattern matching.
Also enable -unchecked warnings in SBT build file.
Diffstat (limited to 'project')
-rw-r--r--project/build/SparkProject.scala25
1 files changed, 11 insertions, 14 deletions
diff --git a/project/build/SparkProject.scala b/project/build/SparkProject.scala
index a6520d1f03..634acab702 100644
--- a/project/build/SparkProject.scala
+++ b/project/build/SparkProject.scala
@@ -6,27 +6,24 @@ import assembly._
import de.element34.sbteclipsify._
-class SparkProject(info: ProjectInfo)
-extends ParentProject(info) with IdeaProject
-{
+class SparkProject(info: ProjectInfo) extends ParentProject(info) with IdeaProject {
+
lazy val core = project("core", "Spark Core", new CoreProject(_))
- lazy val examples =
- project("examples", "Spark Examples", new ExamplesProject(_), core)
+ lazy val examples = project("examples", "Spark Examples", new ExamplesProject(_), core)
lazy val bagel = project("bagel", "Bagel", new BagelProject(_), core)
- class CoreProject(info: ProjectInfo)
- extends DefaultProject(info) with Eclipsify with IdeaProject with DepJar with XmlTestReport
- {}
+ trait BaseProject extends BasicScalaProject with ScalaPaths with Eclipsify with IdeaProject {
+ override def compileOptions = super.compileOptions ++ Seq(Unchecked)
+ }
+
+ class CoreProject(info: ProjectInfo) extends DefaultProject(info) with BaseProject with DepJar with XmlTestReport
- class ExamplesProject(info: ProjectInfo)
- extends DefaultProject(info) with Eclipsify with IdeaProject
- {}
+ class ExamplesProject(info: ProjectInfo) extends DefaultProject(info) with BaseProject
- class BagelProject(info: ProjectInfo)
- extends DefaultProject(info) with DepJar with XmlTestReport
- {}
+ class BagelProject(info: ProjectInfo) extends DefaultProject(info) with BaseProject with DepJar with XmlTestReport
+
}