scalan.meta.Base.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of meta_2.12 Show documentation
Show all versions of meta_2.12 Show documentation
Compiling Scala to Something special
The newest version!
package scalan.meta
import java.util.Properties
import java.io.FileReader
import java.util
object Base {
lazy val config = {
val prop = new Properties
try {
val reader = new FileReader("scalan.meta.properties")
try {
prop.load(reader)
} finally {
reader.close()
}
} catch {
case _: Throwable => {}
}
prop.asInstanceOf[util.Hashtable[Object,Object]].putAll(System.getProperties/*.asInstanceOf[util.Hashtable[Object, Object]]*/)
prop
}
def !!!(msg: String) = {
throw new IllegalStateException(msg)
}
}