All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scalaxb.compiler.SbtApp.scala Maven / Gradle / Ivy

Go to download

scalaxb is an XML data-binding tool for Scala that supports W3C XML Schema (xsd) and wsdl.

The newest version!
package scalaxb.compiler

class SbtApp extends xsbti.AppMain {
  private val logger = Log.forName("main")

  def run(config: xsbti.AppConfiguration) = {
    try {
      Main.start(config.arguments)
      Exit(0)
    }
    catch {
      case e: ReferenceNotFound =>
        logger.error(e.getMessage)
        Exit(1)
      case e: Exception =>
        logger.error(e.getStackTrace.mkString("", Module.NL, Module.NL))
        Exit(1)
    }
  }

  case class Exit(val code: Int) extends xsbti.Exit
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy