Permalink
Browse files

fixed #1 (error with sbt update run on clean checkout)

  • Loading branch information...
TiarkRompf committed Oct 8, 2010
1 parent dbc4566 commit 05dfd7fe4e0fa8427689a6aac9cce9e4a0adb557
Showing with 7 additions and 9 deletions.
  1. +7 −9 project/build/Project.scala
@@ -11,17 +11,15 @@ class Project(info: ProjectInfo) extends DefaultWebProject(info)
val scala = "org.scala-lang" % "scala-library" % "2.8.0" % "compile"
override def mainClass = Some("ch.epfl.lamp.replhtml.ReplMain")
-
- lazy val propRunClassPath = systemOptional[String]("replhtml.class.path",
- (runClasspath +++ Path.fromFile(buildScalaInstance.compilerJar) +++
- Path.fromFile(buildScalaInstance.libraryJar)).absString)
- override def jettyRunAction = {
- System.setProperty("replhtml.class.path", propRunClassPath.get.get)
- super.jettyRunAction
- }
-
+ lazy val setupSysProps = task {
+ System.setProperty("replhtml.class.path", (runClasspath +++ Path.fromFile(buildScalaInstance.compilerJar) +++
+ Path.fromFile(buildScalaInstance.libraryJar)).absString)
+ None
+ } dependsOn(compile)
+ override def runAction = task { args => super.runAction(args).dependsOn(setupSysProps) }
+
// repositories
val scalaToolsSnapshots = "Scala Tools Repository" at "http://nexus.scala-tools.org/content/repositories/snapshots/"
val sonatypeNexusSnapshots = "Sonatype Nexus Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"

0 comments on commit 05dfd7f

Please sign in to comment.