sbt/launch/Boot.scala

31 lines
545 B
Scala
Raw Normal View History

2009-08-21 14:12:43 +02:00
/* sbt -- Simple Build Tool
* Copyright 2009 Mark Harrah
*/
package xsbt.boot
import BootConfiguration.{SbtMainClass, SbtModuleName}
2009-08-21 14:12:43 +02:00
import java.io.File
// The entry point to the launcher
object Boot
{
def main(args: Array[String])
{
CheckProxy()
try { Launch(args) }
2009-08-21 14:12:43 +02:00
catch
{
case b: BootException => errorAndExit(b)
case e =>
e.printStackTrace
errorAndExit(e)
}
System.exit(0)
}
private def errorAndExit(e: Throwable)
{
System.out.println("Error during sbt execution: " + e.toString)
System.exit(1)
}
}