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

at.iem.sysson.Main.scala Maven / Gradle / Ivy

The newest version!
/*
 *  Main.scala
 *  (SysSon)
 *
 *  Copyright (c) 2013-2017 Institute of Electronic Music and Acoustics, Graz.
 *  Copyright (c) 2014-2019 Hanns Holger Rutz. All rights reserved.
 *
 *	This software is published under the GNU General Public License v3+
 *
 *
 *	For further information, please contact Hanns Holger Rutz at
 *	[email protected]
 */

package at.iem.sysson

import at.iem.sysson.gui.SwingApplication

import scala.util.control.NonFatal

object Main {
  lazy val name   : String = buildInfoString("name"   )
  lazy val version: String = buildInfoString("version")

  private def buildInfoString(key: String): String = try {
    val clazz = Class.forName("at.iem.sysson.BuildInfo")
    val m     = clazz.getMethod(key)
    m.invoke(null).toString
  } catch {
    case NonFatal(_) => "?"
  }

  def main(args: Array[String]): Unit = {
    // logInfo(s"Welcome to $name v$version")
//    de.sciss.lucre.matrix.impl.ReaderFactoryImpl.DEBUG = false
    SwingApplication.main(args)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy