at.iem.sysson.Main.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sysson_2.11 Show documentation
Show all versions of sysson_2.11 Show documentation
Sonification platform of the IEM SysSon project
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)
}
}