Permalink
Browse files

Fix test projects

  • Loading branch information...
1 parent 562b216 commit c2fa6050577fdfa05d6d01f9e40e7bf57a520bd5 @xerial committed Feb 14, 2013
View
@@ -15,5 +15,5 @@ project/plugins/project/
.scala_dependencies
.idea*
-examples/*/bin/.lib
-examples/*/target
+src/sbt-test/*/*/bin/.lib
+
@@ -9,12 +9,12 @@ object Build extends sbt.Build {
base = file("."),
settings = Defaults.defaultSettings ++ packSettings ++
Seq(
+ scalaVersion := "2.10.0",
// Mapping from program name -> Main class
packMain := Map("launcher" -> "launcher.Main"),
// Add custom settings here
crossPaths := false,
- resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots",
- libraryDependencies += "org.xerial" % "xerial-lens" % "3.1-SNAPSHOT"
+ libraryDependencies += "org.xerial" % "xerial-lens" % "3.1"
)
)
}
@@ -1,13 +1,13 @@
package launcher
import xerial.core.log.Logger
-import xerial.lens.cui.{Launcher,option,argument,command,DefaultCommand}
+import xerial.lens.cui._
import java.io.File
import io.Source
object Main {
def main(args:Array[String]) {
- Launcher.execute[Main](args)
+ Launcher.of[Main].execute(args)
}
}
@@ -9,6 +9,7 @@ object Build extends sbt.Build {
base = file("."),
settings = Defaults.defaultSettings ++ packSettings ++
Seq(
+ scalaVersion := "2.10.0",
// Mapping from program name -> Main class
packMain := Map("hello" -> "minproject.Hello"),
// custom settings here

0 comments on commit c2fa605

Please sign in to comment.