Hey,
I created a simple project with a main method:
object MyApp {
def main(args: Array[String]) {
println("hello!!")
}
}
0.9.9 fails to find it:
$ ./sbt099 run
[info] Set current project to default (in build file:/home/graham/working/simple/)
[info] Updating...
[info] Done updating.
Compiling:
/home/graham/working/simple/src/main/scala/Hello.scala
Traversing /home/graham/working/simple/src/main/scala/Hello.scala
API phase took : 0.078 s
[error] Incomplete tasks (run 'last <task>' for the full log):
[error] {file:/home/graham/working/simple/}default/test:run: java.lang.RuntimeException: No main class detected.
[error] Total time: 5 s, completed 29-May-2011 14:37:57
The same project works fine in 0.9.8:
$ ./sbt098 run
[info] Set current project to default (in build file:/home/graham/working/simple/)
[info] Updating...
[info] Done updating.
Compiling:
/home/graham/working/simple/src/main/scala/Hello.scala
Traversing /home/graham/working/simple/src/main/scala/Hello.scala
API phase took : 0.061 s
[info] Running MyApp
hello!!
[success] Total time: 4 s, completed 29-May-2011 14:37:34
Fwiw, I've pushed the example project to github:
https://github.com/tackley/simple-mainCheers
g