Skip to content

Commit

Permalink
Update FtlConstants.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
bootstraponline committed Apr 26, 2019
1 parent 9839cfa commit b9b2570
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test_runner/src/main/kotlin/ftl/config/FtlConstants.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,13 @@ import org.slf4j.LoggerFactory

object FtlConstants {
var useMock = false
// depending on environment, it's not always "Mac OS X"
val macOS: Boolean = (System.getProperty("os.name") ?: "").toLowerCase().indexOf("mac") >= 0

val macOS: Boolean by lazy {
val osName = System.getProperty("os.name") ?: ""
val isMac = osName.toLowerCase().indexOf("mac") >= 0
println("isMacOS = $isMac ($osName)")
isMac
}
const val localhost = "http://localhost:8080"

const val defaultLocale = "en"
Expand Down

0 comments on commit b9b2570

Please sign in to comment.