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

Added support for IntelliJ IDEA

parent e5c4cd8a
No related branches found
No related tags found
No related merge requests found
*~
*.swp
*.iml
.idea/
/build/
work/
.DS_Store
......
......@@ -3,13 +3,16 @@ import de.element34.sbteclipsify._
import sbt.Process._
class SparkProject(info: ProjectInfo) extends ParentProject(info)
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", core)
lazy val examples =
project("examples", "Spark Examples", new ExamplesProject(_), core)
class CoreProject(info: ProjectInfo) extends DefaultProject(info) with Eclipsify
class CoreProject(info: ProjectInfo)
extends DefaultProject(info) with Eclipsify with IdeaProject
{
val TARGET = path("target") / "scala_2.8.1"
......@@ -30,7 +33,7 @@ class SparkProject(info: ProjectInfo) extends ParentProject(info)
val makeTarget = " ../../../target/scala_2.8.1/native/" + NATIVE_LIB
(("make -C " + NATIVE_DIR + " " + makeTarget) ! log)
None
} dependsOn(compile) describedAs("Compiles native library.")
}.dependsOn(compile).describedAs("Compiles native library.")
lazy val testReport = task {
log.info("Creating " + TEST_REPORT_DIR + "...")
......@@ -47,6 +50,11 @@ class SparkProject(info: ProjectInfo) extends ParentProject(info)
process !
None
} dependsOn(compile, testCompile) describedAs("Generate XML test report.")
}.dependsOn(compile, testCompile).describedAs("Generate XML test report.")
}
class ExamplesProject(info: ProjectInfo)
extends DefaultProject(info) with Eclipsify with IdeaProject
{
}
}
import sbt._
class SparkProjectPlugins(info: ProjectInfo) extends PluginDefinition(info) {
lazy val eclipse = "de.element34" % "sbt-eclipsify" % "0.7.0"
val eclipse = "de.element34" % "sbt-eclipsify" % "0.7.0"
val sbtIdeaRepo = "sbt-idea-repo" at "http://mpeltonen.github.com/maven/"
val sbtIdea = "com.github.mpeltonen" % "sbt-idea-plugin" % "0.2.0"
}
#Project properties
#Tue Feb 01 14:51:09 PST 2011
#Tue Feb 01 23:56:56 PST 2011
plugin.uptodate=true
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