Groovy Gradle - isOsWindows


/ Published in: Groovy
Save to your folder(s)

When this snippet is added to a class it provides the boolean property: osWindows


Copy this code and paste it in your HTML
  1. boolean isOsWindows() { return System.properties.'os.name'.toLowerCase().contains('windows'); }

Report this snippet


Comments


You need to login to view comments.