harrah/xsbt — Issue #356: sbt run hangs when more than one main is available; also Java main not picked up
Author: mslinn
Created: 2012-02-03 20:10:16+00:00
State: open

I've come across two bugs.
1) Java programs with a main() are not identified as runnable programs by 'sbt run'
2) $ sbt run
[info] Loading global plugins from C:\Users\Mike Slinn\.sbt\plugins
[info] Loading project definition from E:\work\books\akkafutures\akkaFutures\project
[info] Set current project to AkkaFutures (in build file:/E:/work/books/akkafutures/akkaFutures/)

Multiple main classes detected, select one to run:

[1] com.micronautics.akka.dispatch.futureScala.FallbackTo
[2] com.micronautics.akka.dispatch.futureScala.Traverse
[3] com.micronautics.akka.dispatch.futureScala.FilterBlocking
[4] com.micronautics.akka.dispatch.futureScala.ReduceNonblockingScala
[5] com.micronautics.akka.dispatch.futureScala.FilterNonBlocking
[6] com.micronautics.akka.dispatch.futureScala.WithFilter
[7] com.micronautics.akka.dispatch.futureScala.ReduceBlockingScala
[8] com.micronautics.akka.dispatch.futureScala.ScopeSin
[9] com.micronautics.akka.dispatch.futureScala.Zip
[10] com.micronautics.akka.dispatch.futureScala.Fold
[11] com.micronautics.akka.dispatch.futureScala.Map
[12] com.micronautics.akka.dispatch.futureScala.Apply
[13] com.micronautics.akka.dispatch.futureScala.Sequence

Enter number: 2
(sbt hangs)